1
0

kbuild.h 282 B

12345678
  1. #ifndef _KBUILD_H_
  2. #define _KBUILD_H_
  3. #define DEFINE(sym, val) \
  4. asm volatile("\n->" #sym " %0 " #val : : "i" (val))
  5. #define OFFSET(sym, str, mem) DEFINE(sym, offsetof(struct str, mem))
  6. #define COMMENT(x) asm volatile("\n->#" x)
  7. #define BLANK() asm volatile("\n->" : : )
  8. #endif