command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git] / arch / arc / lib / reset.c
index 40fb0f1fbd10d5a77b959f03f6d93ecd1051c982..fbb56ec83af0134145864b18e26afff5fde95ab5 100644 (file)
@@ -5,14 +5,19 @@
 
 #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 */
-       __asm__("brk");
-#endif
+       __builtin_arc_brk();
+}
+
+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
+{
+       printf("Resetting the board...\n");
+
+       reset_cpu(0);
+
        return 0;
 }