4 * longjmp.S atp sept 2001
5 * Jan-Benedict Glaw <jbglaw@lug-owl.de> 2006
7 * Restore regs and info and jmp back to a previous setjmp
13 .word 0x0040 /* This matches setjmp and PLT */
14 movl 0x4(%ap), %r0 /* Our scratch reg */
17 /* We are going to modify our stack frame */
18 /* to the same as that of the setjmp we called earlier */
19 movl (%r0), (%fp) /* cond handler */
20 movl 0x4(%r0), 0x4(%fp) /* psw */
21 movl 0x8(%r0), 0x8(%fp) /* ap */
22 movl 0xc(%r0), 0xc(%fp) /* fp */
23 movl 0x10(%r0), 0x10(%fp) /* pc */
25 /* Restore the regs */
38 /* Check val and set to 1 if set to zero */
45 .size __longjmp,.-__longjmp
46 libc_hidden_def(__longjmp)