mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
![Alexey Brodkin](/assets/img/avatar_default.png)
For quite some time we have a GCC's built-in which inserts BRK instruction so let's use it instead of simple insertion of in-line assembly. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
19 lines
354 B
C
19 lines
354 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
|
|
*/
|
|
|
|
#include <command.h>
|
|
#include <common.h>
|
|
|
|
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
|
{
|
|
printf("Put your restart handler here\n");
|
|
|
|
#ifdef DEBUG
|
|
/* Stop debug session here */
|
|
__builtin_arc_brk();
|
|
#endif
|
|
return 0;
|
|
}
|