sigrestorer.S 570 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (C) 2013 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. #include <sys/syscall.h>
  8. /*
  9. * Provide a real sigreturn stub to avoid kernel synthesizing one
  10. * on user stack at runtime, which needs PTE permissions update
  11. * (hence TLB entry update) and costly cache line flushes for
  12. * code modification
  13. */
  14. ENTRY(__default_rt_sa_restorer)
  15. mov r8, __NR_rt_sigreturn
  16. ARC_TRAP_INSN
  17. END(__default_rt_sa_restorer)
  18. libc_hidden_def(__default_rt_sa_restorer)