[PATCH 3/7] memcpy command: do not set read/write size

Sascha Hauer s.hauer at pengutronix.de
Mon Apr 4 09:09:41 EDT 2011


The memcpy command can be much faster if we do not copy in byte
mode.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 commands/mem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/commands/mem.c b/commands/mem.c
index 73bf915..8df5f0a 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -418,7 +418,7 @@ static int do_mem_cp(struct command *cmdtp, int argc, char *argv[])
 	char *sourcefile = DEVMEM;
 	char *destfile = DEVMEM;
 	int sourcefd, destfd;
-	int mode = O_RWSIZE_1;
+	int mode = 0;
 	struct stat statbuf;
 	int ret = 0;
 
-- 
1.7.2.3




More information about the barebox mailing list