projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3af1efe
)
ppc64: make sure to align stack pointer to 16 bytes at boot
author
Linus Torvalds
<torvalds@quad.osdl.org>
Sat, 4 Mar 2006 23:00:45 +0000
(15:00 -0800)
committer
Linus Torvalds
<torvalds@quad.osdl.org>
Sat, 4 Mar 2006 23:00:45 +0000
(15:00 -0800)
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>
arch/powerpc/kernel/head_64.S
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/head_64.S
b/arch/powerpc/kernel/head_64.S
index 11f2cd5af7dc5fcc346e06378f255f870fe68a02..9b65029dd2a32a4ea0ac17facfcbfda7eb8987d3 100644
(file)
--- a/
arch/powerpc/kernel/head_64.S
+++ b/
arch/powerpc/kernel/head_64.S
@@
-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