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

barrier.h (400B)


      1#ifndef _TOOLS_LINUX_ASM_ARM_BARRIER_H
      2#define _TOOLS_LINUX_ASM_ARM_BARRIER_H
      3
      4/*
      5 * Use the __kuser_memory_barrier helper in the CPU helper page. See
      6 * arch/arm/kernel/entry-armv.S in the kernel source for details.
      7 */
      8#define mb()		((void(*)(void))0xffff0fa0)()
      9#define wmb()		((void(*)(void))0xffff0fa0)()
     10#define rmb()		((void(*)(void))0xffff0fa0)()
     11
     12#endif /* _TOOLS_LINUX_ASM_ARM_BARRIER_H */