[U-Boot] [PATCH] cmd_mem: Store last address/size/etc as ulong
York Sun
yorksun at freescale.com
Thu Mar 19 17:43:12 CET 2015
From: Scott Wood <scottwood at freescale.com>
Otherwise the high 32 bits get truncated on 64-bit U-boot.
Signed-off-by: Scott Wood <scottwood at freescale.com>
CC: Simon Glass <sjg at chromium.org>
---
common/cmd_mem.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index bcb3ee3..62a0404 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -35,9 +35,9 @@ static int mod_mem(cmd_tbl_t *, int, int, int, char * const []);
/* Display values from last command.
* Memory modify remembered values are different from display memory.
*/
-static uint dp_last_addr, dp_last_size;
-static uint dp_last_length = 0x40;
-static uint mm_last_addr, mm_last_size;
+static ulong dp_last_addr, dp_last_size;
+static ulong dp_last_length = 0x40;
+static ulong mm_last_addr, mm_last_size;
static ulong base_address = 0;
--
1.7.9.5
More information about the U-Boot
mailing list