From: Scott Wood Date: Thu, 19 Mar 2015 16:43:12 +0000 (-0700) Subject: cmd_mem: Store last address/size/etc as ulong X-Git-Tag: v2015.07-rc1~67^2~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=581508bdfbf2e6d4a8c8f1f86cc3439718ca9588;p=u-boot 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 Reviewed-by: Simon Glass Reviewed-by: York Sun --- diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 45e471ca82..5d8c9e6c06 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;