summaryrefslogtreecommitdiff
path: root/arch/m68k/lib/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/lib/traps.c')
-rw-r--r--arch/m68k/lib/traps.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/m68k/lib/traps.c b/arch/m68k/lib/traps.c
index c283351181d..e09f36f2fdd 100644
--- a/arch/m68k/lib/traps.c
+++ b/arch/m68k/lib/traps.c
@@ -7,6 +7,8 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#include <config.h>
+#include <cpu_func.h>
#include <init.h>
#include <watchdog.h>
#include <command.h>
@@ -65,3 +67,9 @@ int arch_initr_trap(void)
return 0;
}
+
+void reset_cpu(void)
+{
+ /* TODO: Refactor all the do_reset calls to be reset_cpu() instead */
+ do_reset(NULL, 0, 0, NULL);
+}