mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/ppc: Fix stack initialization in head.S
The code to set up the stack in head.S erroneously loads the bottom of
the stack (the symbol cpu0_boot_stack) into r1 instead of the top of the
stack (cpu0_boot_stack + STACK_SIZE).
Fixes: 3a4e6f67bc ("xen/ppc: Set up a basic C environment")
Signed-off-by: Shawn Anastasio <sanastasio@raptorengineering.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
1 parent
33cf950085
commit
2797a71712
1 file changed
+1
-1
@@ -46,7 +46,7 @@ ENTRY(start)
|
||||
.L_correct_address:
|
||||
|
||||
/* set up the initial stack */
|
||||
LOAD_REG_ADDR(%r1, cpu0_boot_stack)
|
||||
LOAD_REG_ADDR(%r1, cpu0_boot_stack + STACK_SIZE)
|
||||
li %r11, 0
|
||||
stdu %r11, -STACK_FRAME_OVERHEAD(%r1)
|
||||
|
||||
|
||||