Thread (4 messages) flat view 4 messages, 2 authors, 2008-02-08

Re: [RFC][POWERPC] bootwrapper: Add a firmware-independent simpleboot target.

From: Grant Likely <hidden>
Date: 2008-02-02 06:59:47

On 2/1/08, Grant Likely [off-list ref] wrote:
quoted hunk ↗ jump to hunk
From: Grant Likely <redacted>

This target produces a flat binary rather than an ELF file,
fixes the entry point at the beginning of the image, and takes
a complete device tree with no fixups needed.

Based on 'raw' target written by Scott Wood.

Signed-off-by: Grant Likely <redacted>
---
diff --git a/arch/powerpc/boot/io.h b/arch/powerpc/boot/io.h
index ccaedae..ec57ec9 100644
--- a/arch/powerpc/boot/io.h
+++ b/arch/powerpc/boot/io.h
@@ -99,4 +99,11 @@ static inline void barrier(void)
        asm volatile("" : : : "memory");
 }

+static inline void disable_irq(void)
+{
+       int dummy;
+       asm volatile("mfmsr %0; rlwinm %0, %0, 0, ~(1<<15); mtmsr %0" :
+                    "=r" (dummy) : : "memory");
+}
+
 #endif /* _IO_H */
Oops, ignore this bit.  This is leftover cruft from the original
patch.  I've now removed it.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help