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

kbuild.h (380B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __LINUX_KBUILD_H
      3#define __LINUX_KBUILD_H
      4
      5#define DEFINE(sym, val) \
      6	asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
      7
      8#define BLANK() asm volatile("\n.ascii \"->\"" : : )
      9
     10#define OFFSET(sym, str, mem) \
     11	DEFINE(sym, offsetof(struct str, mem))
     12
     13#define COMMENT(x) \
     14	asm volatile("\n.ascii \"->#" x "\"")
     15
     16#endif