#include <asm_defs.h>
#include "setjmp_internal.h"
FUNCTION(__sigsetjmp):
FUNCTION(sigsetjmp):
move.l (4,%a7),%a0
move.l (8,%a7),%d0
#warning M68K: do we want to save a7 there ??
movem.l %d2-%d7/%a2-%a7,(%a0)
clr.l %d0
move %ccr,%d0
move.w %d0,(JMP_REGS_CCR,%a0)
move.l (%a7),(JMP_REGS_PC,%a0)
#warning M68K: check this.
jmp __setjmp_save_sigs
FUNCTION_END(__sigsetjmp)
FUNCTION_END(sigsetjmp)
FUNCTION(setjmp):
FUNCTION(_setjmp):
move.l (%a7)+,%a0
move.l (%a7)+,%d0
clr.l -(%a7)
move.l %d0,-(%a7)
move.l %a0,-(%a7)
jmp __sigsetjmp
FUNCTION_END(setjmp)
#pragma weak _setjmp=setjmp