]> git.sur5r.net Git - u-boot/commitdiff
cmd_mem: Store last address/size/etc as ulong
authorScott Wood <scottwood@freescale.com>
Thu, 19 Mar 2015 16:43:12 +0000 (09:43 -0700)
committerYork Sun <yorksun@freescale.com>
Thu, 23 Apr 2015 15:55:54 +0000 (08:55 -0700)
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>
common/cmd_mem.c

index 45e471ca82bae8efd9fe49e050bcd5a20a86cb6c..5d8c9e6c061c31dcf7fb2f50374d02e5dd72ceb1 100644 (file)
@@ -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;