From: Peter Chubb Date: Tue, 23 Aug 2005 00:50:00 +0000 (-0700) Subject: [IA64] Fix simulator boot (for real this time). X-Git-Tag: v2.6.13-rc7~56 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a4cce10492358b33d33bb43f98284c80482037e8;p=linux-2.6-omap-h63xx.git [IA64] Fix simulator boot (for real this time). Thanks to Stephane, we've now worked out the real cause of the `Linux will not boot on simulator' problem. Turns out it's a stack overflow because the stack pointer wasn't being initialised properly in boot_head.S (it was being initialised to the lowest instead of the highest address of the stack, so the first push started to overwrite data in the BSS). Signed-off-by: Peter Chubb Signed-off-by: Tony Luck --- diff --git a/arch/ia64/hp/sim/boot/boot_head.S b/arch/ia64/hp/sim/boot/boot_head.S index 9364199e563..1c8c7e6a9a5 100644 --- a/arch/ia64/hp/sim/boot/boot_head.S +++ b/arch/ia64/hp/sim/boot/boot_head.S @@ -22,7 +22,7 @@ GLOBAL_ENTRY(_start) .save rp, r0 .body movl gp = __gp - movl sp = stack_mem + movl sp = stack_mem+16384-16 bsw.1 br.call.sptk.many rp=start_bootloader END(_start)