2 * s390x linux replacement vdso.
4 * Copyright 2023 Linaro, Ltd.
6 * SPDX-License-Identifier: GPL-2.0-or-later
9 #include <asm/unistd.h>
10 #include "vdso-asmoffset.h"
14 .type \name, @function
15 .size \name, . - \name
27 .macro vdso_syscall name, nr
30 aghi %r15, -(STACK_FRAME_OVERHEAD + 16)
31 .cfi_adjust_cfa_offset STACK_FRAME_OVERHEAD + 16
32 stg %r14, STACK_FRAME_OVERHEAD(%r15)
33 .cfi_rel_offset %r14, STACK_FRAME_OVERHEAD
35 lg %r14, STACK_FRAME_OVERHEAD(%r15)
36 aghi %r15, STACK_FRAME_OVERHEAD + 16
38 .cfi_adjust_cfa_offset -(STACK_FRAME_OVERHEAD + 16)
44 vdso_syscall __kernel_gettimeofday, __NR_gettimeofday
45 vdso_syscall __kernel_clock_gettime, __NR_clock_gettime
46 vdso_syscall __kernel_clock_getres, __NR_clock_getres
47 vdso_syscall __kernel_getcpu, __NR_getcpu
50 * TODO unwind info, though we're ok without it.
51 * The kernel supplies bogus empty unwind info, and it is likely ignored
52 * by all users. Without it we get the fallback signal frame handling.
56 raw_syscall __NR_sigreturn
57 endf __kernel_sigreturn
59 __kernel_rt_sigreturn:
60 raw_syscall __NR_rt_sigreturn
61 endf __kernel_rt_sigreturn