4 * Created on: Aug 5, 2009
8 #error need to be update to store *(SysBase->ThisTask->tc_SPLower)
10 #include "aros/arm/asm.h"
14 .global AROS_CDEFNAME(setjmp)
15 .type AROS_CDEFNAME(setjmp),%function
17 AROS_CDEFNAME
(setjmp
):
18 mov ip
, r0 /* Get the env address */
19 str
lr, [ip
], #4 /* store return address explicitly */
20 stmia ip
!, {r4, r5, r6, r7, r8, r9, sl, fp
, sp
} /* store non-scratch regs */
21 fstmiax ip
!, {d8-d15
} /* Store VFP registers - we assume they are available! */
22 fmrx
r2, fpscr /* VFP condition codes */
24 mov
r0, #0 /* return zero */