source: SVN/rincon/u-boot/cpu/blackfin/bootrom-asm-offsets.c.in @ 55

Last change on this file since 55 was 55, checked in by Tim Harvey, 22 months ago

rincon: added latest u-boot source

restored form server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 412 bytes
Line 
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
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
12int main(int argc, char *argv[])
Note: See TracBrowser for help on using the repository browser.