Message ID | AANLkTikXJ1cGxTYDjnTKnXNaA0jL6pHBx9Wc2uHRsULJ@mail.gmail.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/arch/sh/kernel/reboot.c b/arch/sh/kernel/reboot.c index b1fca66..541fb39 100644 --- a/arch/sh/kernel/reboot.c +++ b/arch/sh/kernel/reboot.c @@ -9,6 +9,7 @@ #include <asm/addrspace.h> #include <asm/reboot.h> #include <asm/system.h> +#include <asm/mmu_context.h> void (*pm_power_off)(void); EXPORT_SYMBOL(pm_power_off); @@ -25,6 +26,11 @@ static void native_machine_restart(char * __unused) { local_irq_disable(); +#ifdef CONFIG_PMB + /* PMB entry clear. */ + writel(MMUCR_TI, MMUCR); +#endif + /* Address error with SR.BL=1 first. */ trigger_address_error();