@@ -445,7 +445,7 @@ void hang(void)
for (;;) ;
}
-int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+int __arch_restart(void)
{
/* Interrupts off */
disable_interrupts();
@@ -456,4 +456,14 @@ int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
return 1;
}
+/*
+ * The __arch_restart() just jumps back to flash, which isn't safe to do in
+ * emergency conditions. Since we don't have anything better to do, just
+ * fall through into the default hang().
+ */
+void __arch_emergency_restart(void)
+{
+ return;
+}
+
/************************************************************************/
The Sparc port appears to use no generic hardware capability for performing a CPU reset. Since all of the supported boards use the exact same code to perform a jump-to-flash it goes into __arch_restart(). This means that Sparc has a no-op __arch_emergency_restart() function. If the CPU is in an invalid state then jump-to-FLASH probably won't work. Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com> Cc: Daniel Hellstrom <daniel@gaisler.com> --- arch/sparc/lib/board.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-)