#include <command.h>
#include <common.h>
+#include <cpu_func.h>
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+__weak void reset_cpu(ulong addr)
{
- printf("Put your restart handler here\n");
-
-#ifdef DEBUG
/* Stop debug session here */
__builtin_arc_brk();
-#endif
+}
+
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
+{
+ printf("Resetting the board...\n");
+
+ reset_cpu(0);
+
return 0;
}