setjmp.S 503 B

1234567891011121314151617181920212223
  1. /* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */
  2. /* This file is released under the LGPL, any version you like */
  3. #define _ASM
  4. #define _SETJMP_H
  5. #include <bits/setjmp.h>
  6. #include "m68k_pic.S"
  7. .globl __sigsetjmp;
  8. .type __sigsetjmp,@function
  9. .align 4;
  10. __sigsetjmp:
  11. moveal %sp@(4), %a0
  12. movel %sp@(0), %a0@(JB_PC)
  13. moveml %d2-%d7/%a2-%a7, %a0@(JB_REGS)
  14. #if defined(__HAVE_68881__) || defined(__HAVE_FPU__)
  15. fmovemx %fp2-%fp7, %a0@(JB_FPREGS)
  16. #endif
  17. clrl %d0
  18. JUMP __sigjmp_save,%a0