summaryrefslogtreecommitdiff
path: root/examples/standalone
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:48:58 +0000
committerTom Rini <trini@ti.com>2013-02-04 09:05:43 -0500
commit6bb9ba72608e766e9ce859b78f19bb7ea8f63a18 (patch)
tree2904f11c31e2e265642fddfa56e83f09ba5708ef /examples/standalone
parent43e60814b3ee690c02ebf86391b341aeaef9fb0e (diff)
downloadu-boot-imx-6bb9ba72608e766e9ce859b78f19bb7ea8f63a18.zip
u-boot-imx-6bb9ba72608e766e9ce859b78f19bb7ea8f63a18.tar.gz
u-boot-imx-6bb9ba72608e766e9ce859b78f19bb7ea8f63a18.tar.bz2
ppc: Move dp_alloc_base, dp_alloc_top to arch_global_data
Move these fields into arch_global_data and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'examples/standalone')
-rw-r--r--examples/standalone/mem_to_mem_idma2intr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/standalone/mem_to_mem_idma2intr.c b/examples/standalone/mem_to_mem_idma2intr.c
index d0a75ea..e466c90 100644
--- a/examples/standalone/mem_to_mem_idma2intr.c
+++ b/examples/standalone/mem_to_mem_idma2intr.c
@@ -356,7 +356,7 @@ uint dpalloc (uint size, uint align)
/* Pointer to initial global data area */
if (dpinit_done == 0) {
- dpbase = gd->dp_alloc_base;
+ dpbase = gd->arch.dp_alloc_base;
dpinit_done = 1;
}
@@ -369,7 +369,7 @@ uint dpalloc (uint size, uint align)
if ((off = size & align_mask) != 0)
size += align - off;
- if ((dpbase + size) >= gd->dp_alloc_top) {
+ if ((dpbase + size) >= gd->arch.dp_alloc_top) {
dpbase = savebase;
printf ("dpalloc: ran out of dual port ram!");
return 0;