diff options
author | Tom Rini <trini@ti.com> | 2013-01-09 08:13:22 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-01-09 08:13:22 -0700 |
commit | 642ef40bdc95bef829ae3aadc217f829c4c298c4 (patch) | |
tree | 57d6d5170b904176a2a7018e08a615b8725c8874 /lib/asm-offsets.c | |
parent | 449485948e6de1869ec39c1559b7b78d85690ea7 (diff) | |
parent | 61bdb9133593f0f881a57232039296f64bd662ed (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'lib/asm-offsets.c')
-rw-r--r-- | lib/asm-offsets.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c index c88f5d44513..8546a52f45f 100644 --- a/lib/asm-offsets.c +++ b/lib/asm-offsets.c @@ -28,5 +28,19 @@ int main(void) DEFINE(GENERATED_BD_INFO_SIZE, (sizeof(struct bd_info) + 15) & ~15); + DEFINE(GD_SIZE, sizeof(struct global_data)); + + DEFINE(GD_BD, offsetof(struct global_data, bd)); + +#if defined(CONFIG_ARM) + + DEFINE(GD_RELOCADDR, offsetof(struct global_data, relocaddr)); + + DEFINE(GD_RELOC_OFF, offsetof(struct global_data, reloc_off)); + + DEFINE(GD_START_ADDR_SP, offsetof(struct global_data, start_addr_sp)); + +#endif + return 0; } |