diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-offsets.h | 2 | ||||
-rw-r--r-- | include/linux/kbuild.h | 20 |
2 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-offsets.h b/include/asm-offsets.h new file mode 100644 index 0000000..ab28184 --- /dev/null +++ b/include/asm-offsets.h @@ -0,0 +1,2 @@ +#include <generated/generic-asm-offsets.h> +/* #include <generated/asm-offsets.h> */ diff --git a/include/linux/kbuild.h b/include/linux/kbuild.h new file mode 100644 index 0000000..be76384 --- /dev/null +++ b/include/linux/kbuild.h @@ -0,0 +1,20 @@ +/* + * Copied from Linux: + * commit 37487a56523d402e25650da16c337acf4cecd13d + * Author: Christoph Lameter <clameter@sgi.com> + */ +#ifndef __LINUX_KBUILD_H +#define __LINUX_KBUILD_H + +#define DEFINE(sym, val) \ + asm volatile("\n->" #sym " %0 " #val : : "i" (val)) + +#define BLANK() asm volatile("\n->" : : ) + +#define OFFSET(sym, str, mem) \ + DEFINE(sym, offsetof(struct str, mem)) + +#define COMMENT(x) \ + asm volatile("\n->#" x) + +#endif |