bsd-_setjmp.S 474 B

12345678910111213141516171819202122
  1. /* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */
  2. /* This file is released under the LGPL, any version you like */
  3. #include <jmpbuf-offsets.h>
  4. .globl _setjmp;
  5. .type _setjmp,@function
  6. .align 4;
  7. _setjmp:
  8. moveal %sp@(4), %a0
  9. movel %sp@(0), %a0@(JB_PC)
  10. moveml %d2-%d7/%a2-%a7, %a0@(JB_REGS)
  11. #if defined(__HAVE_68881__) || defined(__HAVE_FPU__)
  12. fmovemx %fp2-%fp7, %a0@(JB_FPREGS)
  13. #endif
  14. clrl %d0
  15. movl %d0, JB_SIZE(%a0) /* No signal mask set. */
  16. rts