bootrom-asm-offsets.c.in 412 B

123456789101112
  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. */
  5. #include <linux/stddef.h>
  6. #include <asm/mach-common/bits/bootrom.h>
  7. #define _DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val))
  8. #define DEFINE(s, m) _DEFINE(offset_##s##_##m, offsetof(s, m))
  9. int main(int argc, char *argv[])