Skip to contentSkip to conversation

ppc/85xx: Disable all async interrupt sources when we boot

PATCH New Kumar Gala 1 participant 3 messages Sep 11, 2009 – Sep 16, 2009

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 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.

---
 cpu/mpc85xx/cpu_init.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
cpu/mpc85xx/cpu_init.c +11 -0
index 48a82ed..a6d1e99 100644
@@ -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();
 }
Signature · 1 line
1.6.0.6
author Applied
#1 lore raw

PATCH 1/1 ppc/85xx: Disable all async interrupt sources when we boot

Quoted 8 lines · Kumar Gala

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.

---
cpu/mpc85xx/cpu_init.c | 11 +++++++++++

1 files changed, 11 insertions(+), 0 deletions(-)

applied to 85xx

- k

author Applied
#2 lore raw

PATCH 1/1 ppc/85xx: Disable all async interrupt sources when we boot

In reply to Kumar Gala
Quoted 8 lines · Kumar Gala

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.

---
cpu/mpc85xx/cpu_init.c | 11 +++++++++++

1 files changed, 11 insertions(+), 0 deletions(-)

applied to 85xx

- k