blob: 64c2f24120c6e32a25a610f77761b32097c0e5aa [file] [log] [blame]
Mike Frysinger94bae5c2008-03-30 15:46:13 -04001/* A little trick taken from the kernel asm-offsets.h where we convert
2 * the C structures automatically into a bunch of defines for use in
3 * the assembly files.
4 */
5
6#include <linux/stddef.h>
7#include <asm/mach-common/bits/bootrom.h>
8
9#define _DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val))
10#define DEFINE(s, m) _DEFINE(offset_##s##_##m, offsetof(s, m))
11
Wolfgang Denk6262d0212010-06-28 22:00:46 +020012int main(int argc, char * const argv[])