Skip to content

Commit

Permalink
ppc64: make sure to align stack pointer to 16 bytes at boot
Browse files Browse the repository at this point in the history
yaboot is scrogged and calls us with an invalid stack alignment,
it seems.

Thanks to David Woodhouse to pointing me to the problem.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Linus Torvalds committed Mar 4, 2006
1 parent 3af1efe commit c05b477
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -1537,6 +1537,9 @@ _STATIC(__boot_from_prom)
mr r28,r6
mr r27,r7

/* Align the stack to 16-byte boundary for broken yaboot */
rldicr r1,r1,0,59

/* Make sure we are running in 64 bits mode */
bl .enable_64b_mode

Expand Down

0 comments on commit c05b477

Please sign in to comment.