From b57ca3e128cc10a133ba79bc7ec3e7b50e7c8fbe Mon Sep 17 00:00:00 2001 From: Becky Bruce Date: Mon, 9 Jun 2008 20:37:16 -0500 Subject: 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 --- board/trab/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/trab') diff --git a/board/trab/memory.c b/board/trab/memory.c index 8614be7..052432e 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); -- cgit v1.1