]> xenbits.xensource.com Git - xen.git/commitdiff
xen/ppc: Fix stack initialization in head.S
authorShawn Anastasio <sanastasio@raptorengineering.com>
Thu, 28 Sep 2023 23:19:27 +0000 (18:19 -0500)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 Sep 2023 09:50:37 +0000 (10:50 +0100)
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: 3a4e6f67bc68 ("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>
xen/arch/ppc/ppc64/head.S

index e600ddb05fa19a4e7a6b237eaee2ca1861a0acac..6ce313aff8fa03918ad1f57d44cd26fa4f007d9c 100644 (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)