summaryrefslogtreecommitdiffstats
path: root/commands/memcmp.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-05-27 11:20:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-28 12:32:58 +0200
commit3878611a44e7fb94da7ea5ebf7049d2dd2f23131 (patch)
tree7d9df9ede6e7b7c76a538f2b4ca5ef2dd13eee83 /commands/memcmp.c
parenta27d43a79492abe5892bd22767b26ecb0d695994 (diff)
downloadbarebox-3878611a44e7fb94da7ea5ebf7049d2dd2f23131.tar.gz
barebox-3878611a44e7fb94da7ea5ebf7049d2dd2f23131.tar.xz
memcmp command: Add 64bit support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/memcmp.c')
-rw-r--r--commands/memcmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/memcmp.c b/commands/memcmp.c
index d048150672..e079d5f78e 100644
--- a/commands/memcmp.c
+++ b/commands/memcmp.c
@@ -49,7 +49,7 @@ static int do_memcmp(int argc, char *argv[])
int offset = 0;
struct stat statbuf;
- if (mem_parse_options(argc, argv, "bwls:d:", &mode, &sourcefile,
+ if (mem_parse_options(argc, argv, "bwlqs:d:", &mode, &sourcefile,
&destfile, NULL) < 0)
return 1;
@@ -138,6 +138,7 @@ BAREBOX_CMD_HELP_TEXT("Options:")
BAREBOX_CMD_HELP_OPT ("-b", "byte access")
BAREBOX_CMD_HELP_OPT ("-w", "word access (16 bit)")
BAREBOX_CMD_HELP_OPT ("-l", "long access (32 bit)")
+BAREBOX_CMD_HELP_OPT ("-q", "quad access (64 bit)")
BAREBOX_CMD_HELP_OPT ("-s FILE", "source file (default /dev/mem)")
BAREBOX_CMD_HELP_OPT ("-d FILE", "destination file (default /dev/mem)")
BAREBOX_CMD_HELP_END