summaryrefslogtreecommitdiff
path: root/common/command.c
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2014-02-26 17:03:19 -0800
committerTom Rini <trini@ti.com>2014-03-04 12:15:30 -0500
commit4d1fd7f1ae6cf4e6e4e1cad975f1dcdea62b6d83 (patch)
treefac005cacc864827055709aad05b3924a1eae3e3 /common/command.c
parentf9aa6a1086f6b7da1814a2c95feefa91c9c4b593 (diff)
downloadu-boot-4d1fd7f1ae6cf4e6e4e1cad975f1dcdea62b6d83.tar.gz
Add 64-bit data support for memory commands
Add 64-bit data for memory commands, such as md, mw, mm, cmp. The new size ".q " is introduced. For 64-bit architecture, 64-bit data is enabled by default, by detecting compiler __LP64__. It is optional for other architectures. Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c
index 26c37f2b9d..746b7e3f0e 100644
--- a/common/command.c
+++ b/common/command.c
@@ -421,6 +421,10 @@ int cmd_get_data_size(char* arg, int default_size)
return 2;
case 'l':
return 4;
+#ifdef CONFIG_SYS_SUPPORT_64BIT_DATA
+ case 'q':
+ return 8;
+#endif
case 's':
return -2;
default: