Wolfgang Denk | 16a354f | 2010-10-26 00:08:35 +0200 | [diff] [blame] | 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 | |
| 9 | #define DEFINE(sym, val) \ |
Wolfgang Denk | 071bc92 | 2010-10-27 22:48:30 +0200 | [diff] [blame] | 10 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) |
Wolfgang Denk | 16a354f | 2010-10-26 00:08:35 +0200 | [diff] [blame] | 11 | |
| 12 | #define BLANK() asm volatile("\n->" : : ) |
| 13 | |
| 14 | #define OFFSET(sym, str, mem) \ |
| 15 | DEFINE(sym, offsetof(struct str, mem)) |
| 16 | |
| 17 | #define COMMENT(x) \ |
| 18 | asm volatile("\n->#" x) |
| 19 | |
| 20 | #endif |