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

timex.h (367B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/* Copyright Altera Corporation (C) 2014. All rights reserved.
      3 */
      4
      5#ifndef _ASM_NIOS2_TIMEX_H
      6#define _ASM_NIOS2_TIMEX_H
      7
      8typedef unsigned long cycles_t;
      9
     10extern cycles_t get_cycles(void);
     11#define get_cycles get_cycles
     12
     13#define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
     14
     15#endif