]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PS3: Fix build with 32-bit toolchains
authorGeoff Levand <geoffrey.levand@am.sony.com>
Sat, 21 Jul 2007 11:37:49 +0000 (04:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 00:49:16 +0000 (17:49 -0700)
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>
arch/powerpc/boot/ps3-head.S
arch/powerpc/boot/ps3-hvcall.S

index 1a6d64a68df560ab54ec62e0b0ffb0743beeea1e..a55c2735f759040dd713f9fe56d33d280554c892 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "ppc_asm.h"
 
+       .machine "ppc64"
+
        .text
 
 /*
index c8b7df3210d1dcd8abac2916bd63f0fc220fe7b3..585965f7e6a89edc988e02f38e802e5de0e23627 100644 (file)
@@ -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