projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b827cf
)
lib_arm: do_bootm_linux() - correct a small mistake
author
Ilko Iliev
<iliev@ronetix.at>
Sun, 9 Nov 2008 14:53:14 +0000
(15:53 +0100)
committer
Jean-Christophe PLAGNIOL-VILLARD
<plagnioj@jcrosoft.com>
Fri, 21 Nov 2008 00:44:35 +0000
(
01:44
+0100)
This patch corrects a small bug in the "if" condition:
the parameter "flag" is 0 and the "if" condition is always true.
The result is - the boom command doesn't start the kernel.
Affected targets: all arm based.
Signed-off-by: Ilko Iliev <iliev@ronetix.at>
lib_arm/bootm.c
patch
|
blob
|
history
diff --git
a/lib_arm/bootm.c
b/lib_arm/bootm.c
index 8e264ceb2fc52d688b3cd6f198d3ee30f1948578..7dbde7df5cebef36dc349d4d3189d111bd940cf6 100644
(file)
--- a/
lib_arm/bootm.c
+++ b/
lib_arm/bootm.c
@@
-67,7
+67,7
@@
int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
char *commandline = getenv ("bootargs");
#endif
- if ((flag != 0)
||
(flag != BOOTM_STATE_OS_GO))
+ if ((flag != 0)
&&
(flag != BOOTM_STATE_OS_GO))
return 1;
theKernel = (void (*)(int, int, uint))images->ep;