Commit 2f2a2d99 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle

[MIPS] VR41xx: Add default restart routine.

Signed-off-by: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 054c51b4
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/types.h> #include <linux/types.h>
#include <asm/cacheflush.h>
#include <asm/cpu.h> #include <asm/cpu.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/processor.h> #include <asm/processor.h>
...@@ -70,6 +71,11 @@ static inline void software_reset(void) ...@@ -70,6 +71,11 @@ static inline void software_reset(void)
pmu_write(PMUCNT2REG, pmucnt2); pmu_write(PMUCNT2REG, pmucnt2);
break; break;
default: default:
set_c0_status(ST0_BEV | ST0_ERL);
change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
flush_cache_all();
write_c0_wired(0);
__asm__("jr %0"::"r"(0xbfc00000));
break; break;
} }
} }
...@@ -78,7 +84,6 @@ static void vr41xx_restart(char *command) ...@@ -78,7 +84,6 @@ static void vr41xx_restart(char *command)
{ {
local_irq_disable(); local_irq_disable();
software_reset(); software_reset();
printk(KERN_NOTICE "\nYou can reset your system\n");
while (1) ; while (1) ;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment