1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/sh4/ia64asm.s Thu Jan 10 08:28:37 2008 +0000
1.5 +# Scan back through the stack until we hit the currently executing
1.6 +# translation block, and find the call return address to that block.
1.8 +# Implementation: iterate back through each stack frame until we find
1.9 +# a frame that has a saved %ebp == sh4r (setup by the xlat blocks).
1.10 +# The return address is then the stack value immediately before the
1.13 +# At most 8 stack frames are checked, to prevent infinite looping on a
1.16 +.global xlat_get_native_pc
1.17 +xlat_get_native_pc:
1.24 + je frame_not_found
1.28 + je frame_not_found
1.33 + movl 0x4(%rax), %rax