aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/vdso32/vdso_user_wrapper.S
blob: 3f42f27f978cfda2af169853196b9679bc2f6712 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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