mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
dm: core: Support sandbox with read interface
Update the 'read' command to work correctly with sandbox. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
55f7990bfe
commit
e141075f1c
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <mapmem.h>
|
||||
#include <part.h>
|
||||
|
||||
int do_read(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
|
@ -45,7 +46,7 @@ int do_read(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
addr = (void *)hextoul(argv[3], NULL);
|
||||
addr = map_sysmem(hextoul(argv[3], NULL), 0);
|
||||
blk = hextoul(argv[4], NULL);
|
||||
cnt = hextoul(argv[5], NULL);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue