2018-07-13 01:31:50 +00:00
|
|
|
#ifndef __LINUX_KBUILD_H
|
|
|
|
#define __LINUX_KBUILD_H
|
|
|
|
|
|
|
|
#define DEFINE(sym, val) \
|
2018-12-13 10:48:25 +00:00
|
|
|
asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
|
2018-07-13 01:31:50 +00:00
|
|
|
|
2018-12-13 10:48:25 +00:00
|
|
|
#define BLANK() asm volatile("\n.ascii \"->\"" : : )
|
2018-07-13 01:31:50 +00:00
|
|
|
|
|
|
|
#define OFFSET(sym, str, mem) \
|
|
|
|
DEFINE(sym, offsetof(struct str, mem))
|
|
|
|
|
|
|
|
#define COMMENT(x) \
|
2018-12-13 10:48:25 +00:00
|
|
|
asm volatile("\n.ascii \"->#" x "\"")
|
2018-07-13 01:31:50 +00:00
|
|
|
|
|
|
|
#endif
|