Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * ARM64 compat userspace implementations of gettimeofday() and similar.
0004  *
0005  * Copyright (C) 2018 ARM Limited
0006  *
0007  */
0008 
0009 int __vdso_clock_gettime(clockid_t clock,
0010              struct old_timespec32 *ts)
0011 {
0012     return __cvdso_clock_gettime32(clock, ts);
0013 }
0014 
0015 int __vdso_clock_gettime64(clockid_t clock,
0016                struct __kernel_timespec *ts)
0017 {
0018     return __cvdso_clock_gettime(clock, ts);
0019 }
0020 
0021 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
0022             struct timezone *tz)
0023 {
0024     return __cvdso_gettimeofday(tv, tz);
0025 }
0026 
0027 int __vdso_clock_getres(clockid_t clock_id,
0028             struct old_timespec32 *res)
0029 {
0030     return __cvdso_clock_getres_time32(clock_id, res);
0031 }
0032 
0033 /* Avoid unresolved references emitted by GCC */
0034 
0035 void __aeabi_unwind_cpp_pr0(void)
0036 {
0037 }
0038 
0039 void __aeabi_unwind_cpp_pr1(void)
0040 {
0041 }
0042 
0043 void __aeabi_unwind_cpp_pr2(void)
0044 {
0045 }