vdso_user_wrapper.S 567 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #include <linux/linkage.h>
  3. #include <asm/unistd.h>
  4. #include <asm/dwarf.h>
  5. .macro vdso_syscall func,syscall
  6. .globl __kernel_compat_\func
  7. .type __kernel_compat_\func,@function
  8. __ALIGN
  9. __kernel_compat_\func:
  10. CFI_STARTPROC
  11. svc \syscall
  12. /* Make sure we notice when a syscall returns, which shouldn't happen */
  13. .word 0
  14. CFI_ENDPROC
  15. .size __kernel_compat_\func,.-__kernel_compat_\func
  16. .endm
  17. vdso_syscall restart_syscall,__NR_restart_syscall
  18. vdso_syscall sigreturn,__NR_sigreturn
  19. vdso_syscall rt_sigreturn,__NR_rt_sigreturn