aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_mem.c
diff options
context:
space:
mode:
authorScott Wood2015-03-19 09:43:12 -0700
committerYork Sun2015-04-23 08:55:54 -0700
commit581508bdfbf2e6d4a8c8f1f86cc3439718ca9588 (patch)
tree67f5184bb10ffe50f5fbeb69d2984f85453f38e7 /common/cmd_mem.c
parent9f9f0093730f91d95cb8e9546155ae6a3286159e (diff)
cmd_mem: Store last address/size/etc as ulong
Otherwise the high 32 bits get truncated on 64-bit U-boot. Signed-off-by: Scott Wood <scottwood@freescale.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r--common/cmd_mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index 45e471ca82b..5d8c9e6c061 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -36,9 +36,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;