kbuild.h 469 B

1234567891011121314151617181920
  1. /*
  2. * Copied from Linux:
  3. * commit 37487a56523d402e25650da16c337acf4cecd13d
  4. * Author: Christoph Lameter <clameter@sgi.com>
  5. */
  6. #ifndef __LINUX_KBUILD_H
  7. #define __LINUX_KBUILD_H
  8. #define DEFINE(sym, val) \
  9. asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
  10. #define BLANK() asm volatile("\n.ascii \"->\"" : : )
  11. #define OFFSET(sym, str, mem) \
  12. DEFINE(sym, offsetof(struct str, mem))
  13. #define COMMENT(x) \
  14. asm volatile("\n.ascii \"->#" x "\"")
  15. #endif