[OpenBIOS] [PATCH] ppc: Introduce RFI macro

Andreas Färber andreas.faerber at web.de
Sat Nov 13 14:47:59 CET 2010


Macro name as seen in Linux. Use of macro suggested by Alex.

Cc: Alexander Graf <agraf at suse.de>
Signed-off-by: Andreas Färber <andreas.faerber at web.de>
---
 arch/ppc/qemu/start.S      |    2 +-
 include/arch/ppc/asmdefs.h |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/arch/ppc/qemu/start.S b/arch/ppc/qemu/start.S
index 4db6462..e86bdfd 100644
--- a/arch/ppc/qemu/start.S
+++ b/arch/ppc/qemu/start.S
@@ -234,7 +234,7 @@ VECTOR( 0x800, "FPU" ):
 	ori	r3,r3,0x2000
 	mtsrr1	r3
 	mfsprg1	r3
-	rfi
+	RFI
 
 ILLEGAL_VECTOR( 0x900 )
 ILLEGAL_VECTOR( 0xa00 )
diff --git a/include/arch/ppc/asmdefs.h b/include/arch/ppc/asmdefs.h
index 9da4124..4e22156 100644
--- a/include/arch/ppc/asmdefs.h
+++ b/include/arch/ppc/asmdefs.h
@@ -88,6 +88,12 @@
 	addi (D), (D), LO(x)
 #endif
 
+#ifdef __powerpc64__
+#define RFI rfid
+#else
+#define RFI rfi
+#endif
+
 #ifndef __darwin__
 #define GLOBL( name )		.globl name ; name
 #define EXTERN( name )		name
-- 
1.7.3




More information about the OpenBIOS mailing list