summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-02-12 22:22:12 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-02-12 22:22:12 +0100
commiteea8a320e1299cbd76d3ffd9a1fe0e0d3313268b (patch)
tree5b8f54a44c2a13c9c5e788058a7fab1eb957fd55 /arch/mips
parent3420bf1ca0631ef6347fece1e9f0eb38b1051a98 (diff)
downloadu-boot-imx-eea8a320e1299cbd76d3ffd9a1fe0e0d3313268b.zip
u-boot-imx-eea8a320e1299cbd76d3ffd9a1fe0e0d3313268b.tar.gz
u-boot-imx-eea8a320e1299cbd76d3ffd9a1fe0e0d3313268b.tar.bz2
MIPS: board.c: switch to new symbols __bss_end and __image_copy_end
Use the newly introduced symbols __image_copy_end and __bss_end for setting up the memory area for the relocated U-Boot. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/lib/board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c
index d79e183..d494876 100644
--- a/arch/mips/lib/board.c
+++ b/arch/mips/lib/board.c
@@ -143,7 +143,7 @@ void board_init_f(ulong bootflag)
gd_t gd_data, *id;
bd_t *bd;
init_fnc_t **init_fnc_ptr;
- ulong addr, addr_sp, len = (ulong)&uboot_end - CONFIG_SYS_MONITOR_BASE;
+ ulong addr, addr_sp, len;
ulong *s;
/* Pointer is writable since we allocated a register for it.
@@ -176,6 +176,7 @@ void board_init_f(ulong bootflag)
/* Reserve memory for U-Boot code, data & bss
* round down to next 16 kB limit
*/
+ len = bss_end() - CONFIG_SYS_MONITOR_BASE;
addr -= len;
addr &= ~(16 * 1024 - 1);
@@ -261,7 +262,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
gd->reloc_off = dest_addr - CONFIG_SYS_MONITOR_BASE;
- monitor_flash_len = (ulong)&uboot_end_data - dest_addr;
+ monitor_flash_len = image_copy_end() - dest_addr;
serial_initialize();