2 Copyright © 2015, The AROS Development Team. All rights reserved.
5 Desc: ANSI C function siglongjmp()
9 #include "aros/arm/asm.h"
13 .global AROS_CDEFNAME(siglongjmp)
14 .type AROS_CDEFNAME(siglongjmp),%function
16 AROS_CDEFNAME
(siglongjmp
):
17 mov ip
, r0 /* env into ip register */
18 ldr
lr, [ip
], #4 /* restore return address */
19 movs
r0, r1 /* return value from siglongjmp into r0 and generate condition code */
20 moveq
r0, #1 /* if retval = 0, then retval = 1 */
21 ldmia ip
!, {r4, r5, r6, r7, r8, r9, sl, fp
, sp
} /* restore non-scratch regs */
30 fldmiax ip
!, {d8-d15
} /* Restore VFP registers - we assume they are available! */
31 ldr
r1, [ip
], #4 /* restore VFP status reg */