NAND Boot: fix an invalid PC error caused by div operation.
[u-boot-openmoko/mini2440.git] / cpu / blackfin / bootrom-asm-offsets.c.in
blob3146e46674f5407e587be0b5313e0f1bb42d8c11
1 /* 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 */
6 #include <linux/stddef.h>
7 #include <asm/mach-common/bits/bootrom.h>
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))
12 int main(int argc, char *argv[])