浏览代码

[IA64] make unwinder stop at last frame of the bootloader

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>
David Mosberger-Tang 18 年之前
父节点
当前提交
5d36aa9bbe
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/ia64/hp/sim/boot/boot_head.S

+ 1 - 0
arch/ia64/hp/sim/boot/boot_head.S

@@ -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)
 
 /*