diff options
| author | Becky Bruce <[email protected]> | 2008-06-09 20:37:16 -0500 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2008-06-12 00:54:53 +0200 |
| commit | b57ca3e128cc10a133ba79bc7ec3e7b50e7c8fbe (patch) | |
| tree | 247a1f2b1ea4c024206b4ec02a71604cd5ee40b3 /board | |
| parent | b77cddc7b52acd4ed78830ac681a398dd3053938 (diff) | |
Change bd/gd memsize/ram_size to be phys_size_t.
Currently, both are defined as an unsigned long, but
should be phys_size_t. This should result in no real change,
since phys_size_t is currently an unsigned long for all the
default configs. Also add print_lnum to cmd_bdinfo to deal
with the potentially wider memsize.
Signed-off-by: Becky Bruce <[email protected]>
Diffstat (limited to 'board')
| -rw-r--r-- | board/trab/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/trab/memory.c b/board/trab/memory.c index 8614be7bada..052432e9d90 100644 --- a/board/trab/memory.c +++ b/board/trab/memory.c @@ -460,7 +460,7 @@ int memory_post_test (int flags) { int ret = 0; bd_t *bd = gd->bd; - unsigned long memsize = (bd->bi_memsize >= 256 << 20 ? + phys_size_t memsize = (bd->bi_memsize >= 256 << 20 ? 256 << 20 : bd->bi_memsize) - (1 << 20); |
