summaryrefslogtreecommitdiff
path: root/arch/arc/lib/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/lib/reset.c')
-rw-r--r--arch/arc/lib/reset.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/arc/lib/reset.c b/arch/arc/lib/reset.c
index 40fb0f1fbd1..02e08df48de 100644
--- a/arch/arc/lib/reset.c
+++ b/arch/arc/lib/reset.c
@@ -6,13 +6,17 @@
#include <command.h>
#include <common.h>
+__weak void reset_cpu(ulong addr)
+{
+ /* Stop debug session here */
+ __builtin_arc_brk();
+}
+
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{
- printf("Put your restart handler here\n");
+ printf("Resetting the board...\n");
+
+ reset_cpu(0);
-#ifdef DEBUG
- /* Stop debug session here */
- __asm__("brk");
-#endif
return 0;
}