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:
Shawn Anastasio authored and Andrew Cooper committed 2023-09-29 10:50:37 +01:00
1 parent 33cf950085
commit 2797a71712
1 file changed
+1 -1
+1 -1
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.