[IA64] make unwinder stop at last frame of the bootloader
authorDavid Mosberger-Tang <dmosberger@gmail.com>
Thu, 9 Aug 2007 22:54:27 +0000 (16:54 -0600)
committerTony Luck <tony.luck@intel.com>
Mon, 13 Aug 2007 20:26:02 +0000 (13:26 -0700)
Add a dummy nop at the end of _start() to maintain the invariant that
the return-pointer (rp) always point to the calling function.  This
makes unwinding stop at the last frame, as it should.

Signed-off-by: David Mosberger-Tang <dmosberger@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/hp/sim/boot/boot_head.S

index a9bd71a..8808565 100644 (file)
@@ -26,6 +26,7 @@ GLOBAL_ENTRY(_start)
        movl sp = stack_mem+16384-16
        bsw.1
        br.call.sptk.many rp=start_bootloader
+0:     nop 0             /* dummy nop to make unwinding work */
 END(_start)
 
 /*