Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: e73f0f0ee7541171d89f2e2491130c7771ba58d3 authored by Linus Torvalds on 11 July 2021, 22:07:40 UTC
Linux 5.14-rc1
Tip revision: e73f0f0
vdso_user_wrapper.S
/* SPDX-License-Identifier: GPL-2.0 */

#include <asm/unistd.h>
#include <asm/dwarf.h>

.macro vdso_syscall func,syscall
	.globl __kernel_compat_\func
	.type  __kernel_compat_\func,@function
	.align 8
__kernel_compat_\func:
	CFI_STARTPROC
	svc	\syscall
	/* Make sure we notice when a syscall returns, which shouldn't happen */
	.word	0
	CFI_ENDPROC
	.size	__kernel_compat_\func,.-__kernel_compat_\func
.endm

vdso_syscall restart_syscall,__NR_restart_syscall
vdso_syscall sigreturn,__NR_sigreturn
vdso_syscall rt_sigreturn,__NR_rt_sigreturn
back to top