sigreturn.S 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Sigreturn trampoline for returning from a signal when the SA_RESTORER
  3. * flag is not set.
  4. *
  5. * Copyright (C) 2012 ARM Limited
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. * Author: Will Deacon <will.deacon@arm.com>
  20. */
  21. #include <linux/linkage.h>
  22. #include <asm/unistd.h>
  23. .text
  24. nop
  25. ENTRY(__kernel_rt_sigreturn)
  26. .cfi_startproc
  27. .cfi_signal_frame
  28. .cfi_def_cfa x29, 0
  29. .cfi_offset x29, 0 * 8
  30. .cfi_offset x30, 1 * 8
  31. mov x8, #__NR_rt_sigreturn
  32. svc #0
  33. .cfi_endproc
  34. ENDPROC(__kernel_rt_sigreturn)