xref: /linux/arch/arm64/kernel/vdso32/vgettimeofday.c (revision 6f7e6393d1ce636bb7ec77a7fe7b77458fddf701)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * ARM64 compat userspace implementations of gettimeofday() and similar.
4  *
5  * Copyright (C) 2018 ARM Limited
6  *
7  */
8 #define BUILD_VDSO32_64
9 #include <vdso/gettime.h>
10 
11 int __vdso_clock_gettime(clockid_t clock,
12 			 struct old_timespec32 *ts)
13 {
14 	return __cvdso_clock_gettime32(clock, ts);
15 }
16 
17 int __vdso_clock_gettime64(clockid_t clock,
18 			   struct __kernel_timespec *ts)
19 {
20 	return __cvdso_clock_gettime(clock, ts);
21 }
22 
23 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
24 			struct timezone *tz)
25 {
26 	return __cvdso_gettimeofday(tv, tz);
27 }
28 
29 int __vdso_clock_getres(clockid_t clock_id,
30 			struct old_timespec32 *res)
31 {
32 	return __cvdso_clock_getres_time32(clock_id, res);
33 }
34 
35 int __vdso_clock_getres_time64(clockid_t clock_id, struct __kernel_timespec *res)
36 {
37 	return __cvdso_clock_getres(clock_id, res);
38 }
39 
40 /* Avoid unresolved references emitted by GCC */
41 
42 void __aeabi_unwind_cpp_pr0(void)
43 {
44 }
45 
46 void __aeabi_unwind_cpp_pr1(void)
47 {
48 }
49 
50 void __aeabi_unwind_cpp_pr2(void)
51 {
52 }
53