aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Färber <andreas.faerber@web.de>2010-11-13 20:28:20 +0000
committerAndreas Färber <afaerber@suse.de>2010-11-13 20:28:20 +0000
commit5ffaebf3cf3de7e13cbfdc51d9e31a43f0f00d57 (patch)
tree84062d6442eaaa854257fc79870444cba1bbb9a0
parentc3b33b66102c04ddb9169ece44155dfcd66ef0e4 (diff)
downloadopenbios-5ffaebf3cf3de7e13cbfdc51d9e31a43f0f00d57.zip
openbios-5ffaebf3cf3de7e13cbfdc51d9e31a43f0f00d57.tar.gz
openbios-5ffaebf3cf3de7e13cbfdc51d9e31a43f0f00d57.tar.bz2
ppc: Introduce RFI macro
Macro name as seen in Linux. Use of macro suggested by Alex. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Alexander Graf <agraf@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@955 f158a5a8-5612-0410-a976-696ce0be7e32
-rw-r--r--arch/ppc/qemu/start.S2
-rw-r--r--include/arch/ppc/asmdefs.h6
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