summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/cpu
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/cpu
parent3d0f8c8f8072a3f2844fc54bfaf2a42026903755 (diff)
downloadtalos-obmc-uboot-8ee666a76ffe2b63174af477c93ebf389a49d76b.tar.gz
talos-obmc-uboot-8ee666a76ffe2b63174af477c93ebf389a49d76b.zip
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/cpu')
-rw-r--r--arch/sandbox/cpu/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index d7684d38eb..b2788d5d53 100644
--- a/arch/sandbox/cpu/cpu.c
+++ b/arch/sandbox/cpu/cpu.c
@@ -54,7 +54,7 @@ int cleanup_before_linux(void)
void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
{
- return (void *)(gd->ram_buf + paddr);
+ return (void *)(gd->arch.ram_buf + paddr);
}
void flush_dcache_range(unsigned long start, unsigned long stop)
OpenPOWER on IntegriCloud