bsd-_setjmp.S 591 B

1234567891011121314151617181920
  1. /* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'. ARC version.
  2. *
  3. * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
  4. *
  5. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  6. */
  7. /* This just does a tail-call to `__sigsetjmp (ARG, 1)'.
  8. We cannot do it in C because it must be a tail-call, so frame-unwinding
  9. in setjmp doesn't clobber the state restored by longjmp. */
  10. #include <sysdep.h>
  11. ;@ r0 = jump buffer into which regs will be saved
  12. ENTRY(_setjmp)
  13. b.d __sigsetjmp
  14. mov r1, 0 ; don't save signals
  15. END(_setjmp)
  16. libc_hidden_def(_setjmp)