Skip to contentSkip to conversation

trivial boot_head.S

PATCH David Mosberger-Tang 1 participant 1 message Aug 9, 2007

lore
Share & tools
lore
#0 lore raw

Attached is a trivial patch that makes stack-unwinding stop at the last frame of the bootloader.

--david

Signature · 1 line
Mosberger Consulting LLC, http://www.mosberger-consulting.com/

[IA64] 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.

arch/ia64/hp/sim/boot/boot_head.S +1 -0
index a9bd71a..8808565 100644
@@ -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)
 
 /*