linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Disable external interrupts in bootwrapper
@ 2007-03-27 22:28 Mark A. Greer
  2007-03-27 23:43 ` Paul Mackerras
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Mark A. Greer @ 2007-03-27 22:28 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

Disable external interrupts very early in the bootwrapper in case
the firmware left a device generating interrupts.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
---

 crt0.S |    6 ++++++
 1 file changed, 6 insertions(+)
---

diff --git a/arch/powerpc/boot/crt0.S b/arch/powerpc/boot/crt0.S
index 3dc8d8f..f048a46 100644
--- a/arch/powerpc/boot/crt0.S
+++ b/arch/powerpc/boot/crt0.S
@@ -23,6 +23,12 @@ _zimage_start:
 	   and the address where we're running. */
 	bl	1f
 1:	mflr	r0
+	li	r9,(1<<15)@l	/* Disable external intrs (clear MSR[EE]) */
+	mfmsr	r10
+	andc	r10,r10,r9
+	sync
+	mtmsr	r10
+	isync
 	lis	r9,1b@ha
 	addi	r9,r9,1b@l
 	subf.	r0,r9,r0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-04-10 22:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-27 22:28 [PATCH] powerpc: Disable external interrupts in bootwrapper Mark A. Greer
2007-03-27 23:43 ` Paul Mackerras
2007-03-28  0:12   ` Mark A. Greer
2007-03-28  0:28     ` Benjamin Herrenschmidt
2007-03-28  1:03       ` Mark A. Greer
2007-03-28  1:26         ` David Gibson
2007-03-28  1:34           ` Mark A. Greer
2007-03-28 16:52       ` Segher Boessenkool
2007-03-28  1:05 ` Geoff Levand
2007-03-28  1:34   ` Mark A. Greer
2007-03-28 16:57   ` Segher Boessenkool
2007-04-10 22:37 ` Mark A. Greer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).