From: Shawn Anastasio Date: Thu, 28 Sep 2023 23:19:27 +0000 (-0500) Subject: xen/ppc: Fix stack initialization in head.S X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2797a717121cda0da5eeea3a17203d1c155c5e54;p=people%2Froyger%2Fxen.git 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: 3a4e6f67bc68 ("xen/ppc: Set up a basic C environment") Signed-off-by: Shawn Anastasio Reviewed-by: Andrew Cooper Release-acked-by: Henry Wang --- diff --git a/xen/arch/ppc/ppc64/head.S b/xen/arch/ppc/ppc64/head.S index e600ddb05f..6ce313aff8 100644 --- a/xen/arch/ppc/ppc64/head.S +++ b/xen/arch/ppc/ppc64/head.S @@ -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)