diff options
author | Kuan-Yu Kuo <ken.kuoky@gmail.com> | 2013-04-23 07:47:47 +0000 |
---|---|---|
committer | Macpaul Lin <macpaul@gmail.com> | 2013-05-08 12:38:10 +0800 |
commit | fe8e4dbad1d31c452af3fbabba21e72b210381b3 (patch) | |
tree | 5edc8e1fad085480106756e88bf1045ab779a85f /arch/nds32/lib/board.c | |
parent | 7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf (diff) |
nds32: Use sections header to obtain link symbols
Include this header to get access to link symbols, which are otherwise
removed.
Signed-off-by: Kuan-Yu Kuo <ken.kuoky@gmail.com>
Cc: Macpaul Lin <macpaul@gmail.com>
Diffstat (limited to 'arch/nds32/lib/board.c')
-rw-r--r-- | arch/nds32/lib/board.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/nds32/lib/board.c b/arch/nds32/lib/board.c index 57af1bee9b..1157d8c503 100644 --- a/arch/nds32/lib/board.c +++ b/arch/nds32/lib/board.c @@ -36,6 +36,7 @@ #include <nand.h> #include <onenand_uboot.h> #include <mmc.h> +#include <asm/sections.h> DECLARE_GLOBAL_DATA_PTR; @@ -300,7 +301,7 @@ void board_init_r(gd_t *id, ulong dest_addr) gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */ - monitor_flash_len = &_end - &_start; + monitor_flash_len = (ulong)&_end - (ulong)&_start; debug("monitor flash len: %08lX\n", monitor_flash_len); board_init(); /* Setup chipselects */ |