blob: 8a9f645e429712c25e83e2c8989bed4dda24eada [file] [log] [blame]
Wolfgang Denk81aa2eb2010-10-26 00:08:35 +02001/*
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) \
Jeroen Hofstee35abedc2014-07-30 21:54:54 +020010 asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
Wolfgang Denk81aa2eb2010-10-26 00:08:35 +020011
Jeroen Hofstee35abedc2014-07-30 21:54:54 +020012#define BLANK() asm volatile("\n.ascii \"->\"" : : )
Wolfgang Denk81aa2eb2010-10-26 00:08:35 +020013
14#define OFFSET(sym, str, mem) \
15 DEFINE(sym, offsetof(struct str, mem))
16
17#define COMMENT(x) \
Jeroen Hofstee35abedc2014-07-30 21:54:54 +020018 asm volatile("\n.ascii \"->#" x "\"")
Wolfgang Denk81aa2eb2010-10-26 00:08:35 +020019
20#endif