summaryrefslogtreecommitdiff
path: root/arch/sandbox/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:49:11 +0000
committerTom Rini <trini@ti.com>2013-02-04 09:05:45 -0500
commit8ee666a76ffe2b63174af477c93ebf389a49d76b (patch)
tree7adbc432825654849d9b5c996f6c0ef3a22d1f65 /arch/sandbox/lib
parent3d0f8c8f8072a3f2844fc54bfaf2a42026903755 (diff)
downloadu-boot-imx-8ee666a76ffe2b63174af477c93ebf389a49d76b.zip
u-boot-imx-8ee666a76ffe2b63174af477c93ebf389a49d76b.tar.gz
u-boot-imx-8ee666a76ffe2b63174af477c93ebf389a49d76b.tar.bz2
sandbox: Move ram_buf to arch_global_data
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/lib')
-rw-r--r--arch/sandbox/lib/board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sandbox/lib/board.c b/arch/sandbox/lib/board.c
index 83858c1..3752fab 100644
--- a/arch/sandbox/lib/board.c
+++ b/arch/sandbox/lib/board.c
@@ -174,7 +174,7 @@ void board_init_f(ulong bootflag)
mem = os_malloc(CONFIG_SYS_SDRAM_SIZE);
assert(mem);
- gd->ram_buf = mem;
+ gd->arch.ram_buf = mem;
addr = (ulong)(mem + size);
/*
@@ -227,8 +227,8 @@ void board_init_r(gd_t *id, ulong dest_addr)
#endif
/* The Malloc area is at the top of simulated DRAM */
- mem_malloc_init((ulong)gd->ram_buf + gd->ram_size - TOTAL_MALLOC_LEN,
- TOTAL_MALLOC_LEN);
+ mem_malloc_init((ulong)gd->arch.ram_buf + gd->ram_size -
+ TOTAL_MALLOC_LEN, TOTAL_MALLOC_LEN);
/* initialize environment */
env_relocate();