bsd-_setjmp.S 502 B

123456789101112131415161718192021222324
  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. .globl _setjmp;
  7. .type _setjmp,@function
  8. .align 4;
  9. _setjmp:
  10. moveal %sp@(4), %a0
  11. movel %sp@(0), %a0@(JB_PC)
  12. moveml %d2-%d7/%a2-%a7, %a0@(JB_REGS)
  13. #if defined(__HAVE_68881__) || defined(__HAVE_FPU__)
  14. fmovemx %fp2-%fp7, %a0@(JB_FPREGS)
  15. #endif
  16. clrl %d0
  17. movl %d0, JB_SIZE(%a0) /* No signal mask set. */
  18. rts