From: Kumar Gala Date: Fri, 11 Sep 2009 20:28:41 +0000 (-0500) Subject: ppc/85xx: Disable all async interrupt sources when we boot X-Git-Tag: v2010.09-rc1~28^2~7^2~42^2~80 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f8d7b56e003fe19f37d4e9e326df9e9024a052b0;p=u-boot ppc/85xx: Disable all async interrupt sources when we boot We should make sure to clear MSR[ME, CE, DE] when we boot an OS image since we have changed the exception vectors and the OSes vectors might not be setup we should avoid async interrupts at all costs. Signed-off-by: Kumar Gala --- diff --git a/cpu/mpc85xx/cpu_init.c b/cpu/mpc85xx/cpu_init.c index 48a82eda6d..a6d1e999b6 100644 --- a/cpu/mpc85xx/cpu_init.c +++ b/cpu/mpc85xx/cpu_init.c @@ -364,5 +364,16 @@ extern void setup_ivors(void); void arch_preboot_os(void) { + u32 msr; + + /* + * We are changing interrupt offsets and are about to boot the OS so + * we need to make sure we disable all async interrupts. EE is already + * disabled by the time we get called. + */ + msr = mfmsr(); + msr &= ~(MSR_ME|MSR_CE|MSR_DE); + mtmsr(msr); + setup_ivors(); }