Skip to content

Commit

Permalink
PS3: Fix build with 32-bit toolchains
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geoff Levand authored and Linus Torvalds committed Jul 22, 2007
1 parent f965263 commit 24ed855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/boot/ps3-head.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#include "ppc_asm.h"

.machine "ppc64"

.text

/*
Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/boot/ps3-hvcall.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24ed855

Please sign in to comment.