cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

vgettimeofday.c (828B)


      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
      9int __vdso_clock_gettime(clockid_t clock,
     10			 struct old_timespec32 *ts)
     11{
     12	return __cvdso_clock_gettime32(clock, ts);
     13}
     14
     15int __vdso_clock_gettime64(clockid_t clock,
     16			   struct __kernel_timespec *ts)
     17{
     18	return __cvdso_clock_gettime(clock, ts);
     19}
     20
     21int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
     22			struct timezone *tz)
     23{
     24	return __cvdso_gettimeofday(tv, tz);
     25}
     26
     27int __vdso_clock_getres(clockid_t clock_id,
     28			struct old_timespec32 *res)
     29{
     30	return __cvdso_clock_getres_time32(clock_id, res);
     31}
     32
     33/* Avoid unresolved references emitted by GCC */
     34
     35void __aeabi_unwind_cpp_pr0(void)
     36{
     37}
     38
     39void __aeabi_unwind_cpp_pr1(void)
     40{
     41}
     42
     43void __aeabi_unwind_cpp_pr2(void)
     44{
     45}