sigrestorer.S 633 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2017-2022 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <sysdep.h>
  7. /*
  8. * Default sigretrun stub if user doesn't specify SA_RESTORER.
  9. */
  10. .section .text
  11. .align 4
  12. .global __default_rt_sa_restorer
  13. .type __default_rt_sa_restorer, @function
  14. ; This "nop" is needed here, because debugger would assume that this function
  15. ; called the signal handler, therefore it cannot start on the "mov"
  16. ; instruction, at which execution will jump to.
  17. nop
  18. __default_rt_sa_restorer:
  19. mov r8, __NR_rt_sigreturn
  20. ARC_TRAP_INSN
  21. j_s [blink]