sigrestorer.S 621 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (C) 2008 Tensilica Inc.
  3. *
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <sys/syscall.h>
  7. #if __NR_rt_sigreturn > 255
  8. # error value of __NR_rt_sigreturn is too big!
  9. #endif
  10. .text
  11. /* This space separates __default_sa_restorer from the previous
  12. * function, so that its corresponding FDE is not mistakenly found
  13. * by the libgcc stack unwinder. This is important for correct signal
  14. * stack unwinding.
  15. */
  16. .space 1
  17. .align 4
  18. .global __default_sa_restorer
  19. .type __default_sa_restorer, @function
  20. __default_sa_restorer:
  21. movi a2, __NR_rt_sigreturn
  22. syscall