projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
image: fdt: check "status" of "/reserved-memory" subnodes
[oweals/u-boot.git]
/
common
/
command.c
diff --git
a/common/command.c
b/common/command.c
index db25bf54e0598858559565f475d3d530e105733d..0d8bf244be220e02beccc0741847d2f45d5ca285 100644
(file)
--- a/
common/command.c
+++ b/
common/command.c
@@
-11,6
+11,7
@@
#include <common.h>
#include <command.h>
#include <console.h>
#include <common.h>
#include <command.h>
#include <console.h>
+#include <env.h>
#include <linux/ctype.h>
/*
#include <linux/ctype.h>
/*
@@
-468,7
+469,7
@@
int cmd_get_data_size(char* arg, int default_size)
return 2;
case 'l':
return 4;
return 2;
case 'l':
return 4;
-#ifdef
CONFIG_SYS
_SUPPORT_64BIT_DATA
+#ifdef
MEM
_SUPPORT_64BIT_DATA
case 'q':
return 8;
#endif
case 'q':
return 8;
#endif
@@
-495,6
+496,11
@@
void fixup_cmdtable(cmd_tbl_t *cmdtp, int size)
for (i = 0; i < size; i++) {
ulong addr;
for (i = 0; i < size; i++) {
ulong addr;
+ addr = (ulong)(cmdtp->cmd_rep) + gd->reloc_off;
+ cmdtp->cmd_rep =
+ (int (*)(struct cmd_tbl_s *, int, int,
+ char * const [], int *))addr;
+
addr = (ulong)(cmdtp->cmd) + gd->reloc_off;
#ifdef DEBUG_COMMANDS
printf("Command \"%s\": 0x%08lx => 0x%08lx\n",
addr = (ulong)(cmdtp->cmd) + gd->reloc_off;
#ifdef DEBUG_COMMANDS
printf("Command \"%s\": 0x%08lx => 0x%08lx\n",