mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-10 00:26:55 +00:00
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>
This commit is contained in:
parent
43e60814b3
commit
6bb9ba7260
5 changed files with 36 additions and 34 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue