116a354f9SWolfgang Denk /* 216a354f9SWolfgang Denk * Copied from Linux: 316a354f9SWolfgang Denk * commit 37487a56523d402e25650da16c337acf4cecd13d 416a354f9SWolfgang Denk * Author: Christoph Lameter <clameter@sgi.com> 516a354f9SWolfgang Denk */ 616a354f9SWolfgang Denk #ifndef __LINUX_KBUILD_H 716a354f9SWolfgang Denk #define __LINUX_KBUILD_H 816a354f9SWolfgang Denk 916a354f9SWolfgang Denk #define DEFINE(sym, val) \ 10*fe5d1abcSJeroen Hofstee asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val)) 1116a354f9SWolfgang Denk 12*fe5d1abcSJeroen Hofstee #define BLANK() asm volatile("\n.ascii \"->\"" : : ) 1316a354f9SWolfgang Denk 1416a354f9SWolfgang Denk #define OFFSET(sym, str, mem) \ 1516a354f9SWolfgang Denk DEFINE(sym, offsetof(struct str, mem)) 1616a354f9SWolfgang Denk 1716a354f9SWolfgang Denk #define COMMENT(x) \ 18*fe5d1abcSJeroen Hofstee asm volatile("\n.ascii \"->#" x "\"") 1916a354f9SWolfgang Denk 2016a354f9SWolfgang Denk #endif 21