]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/powerpc/sysdep.h
linux: Add support for clock_gettime64 vDSO
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / powerpc / sysdep.h
1 /* Syscall definitions, Linux PowerPC generic version.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19 #define VDSO_NAME "LINUX_2.6.15"
20 #define VDSO_HASH 123718565
21
22 /* List of system calls which are supported as vsyscalls. */
23 #define HAVE_CLOCK_GETRES_VSYSCALL "__kernel_clock_getres"
24 #if defined(__PPC64__) || defined(__powerpc64__)
25 #define HAVE_CLOCK_GETTIME64_VSYSCALL "__kernel_clock_gettime"
26 #else
27 #define HAVE_CLOCK_GETTIME_VSYSCALL "__kernel_clock_gettime"
28 #endif
29 #define HAVE_GETCPU_VSYSCALL "__kernel_getcpu"
30 #define HAVE_TIME_VSYSCALL "__kernel_time"
31 #define HAVE_GETTIMEOFDAY_VSYSCALL "__kernel_gettimeofday"
32 #define HAVE_GET_TBFREQ "__kernel_get_tbfreq"
33
34 #if defined(__PPC64__) || defined(__powerpc64__)
35 # define HAVE_SIGTRAMP_RT64 "__kernel_sigtramp_rt64"
36 #else
37 # define HAVE_SIGTRAMP_32 "__kernel_sigtramp32"
38 # define HAVE_SIGTRAMP_RT32 "__kernel_sigtramp_rt32"
39 #endif