Selaa lähdekoodia

PS3: Fix build with 32-bit toolchains

The PS3 bootwrapper files use instructions only available on 64-bit CPUs.
Add the code generation directive '.machine "ppc64"' for toolchains
configured for 32-bit CPUs.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Geoff Levand 18 vuotta sitten
vanhempi
commit
24ed8559c7
2 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 2 0
      arch/powerpc/boot/ps3-head.S
  2. 2 0
      arch/powerpc/boot/ps3-hvcall.S

+ 2 - 0
arch/powerpc/boot/ps3-head.S

@@ -20,6 +20,8 @@
 
 #include "ppc_asm.h"
 
+	.machine "ppc64"
+
 	.text
 
 /*

+ 2 - 0
arch/powerpc/boot/ps3-hvcall.S

@@ -20,6 +20,8 @@
 
 #include "ppc_asm.h"
 
+	.machine "ppc64"
+
 /*
  * The PS3 hypervisor uses a 64 bit "C" language calling convention.
  * The routines here marshal arguments between the 32 bit wrapper