16 Nov, 2011
1 commit
-
This patch exports LCD info-query and bitmap-rendering functions to
external apps.This patch is tested on a Seaboard. Because the LCD driver is not yet
upstreamed, the test was done in a local downstream repo.Signed-off-by: Che-Liang Chiou
29 Nov, 2010
1 commit
-
The duplication of the do_reset prototype has gotten out of hand,
and they're not all in sync. Unify them all in command.h.Signed-off-by: Mike Frysinger
05 Jul, 2010
1 commit
-
The hush shell dynamically allocates (and re-allocates) memory for the
argument strings in the "char *argv[]" argument vector passed to
commands. Any code that modifies these pointers will cause serious
corruption of the malloc data structures and crash U-Boot, so make
sure the compiler can check that no such modifications are being done
by changing the code into "char * const argv[]".This modification is the result of debugging a strange crash caused
after adding a new command, which used the following argument
processing code which has been working perfectly fine in all Unix
systems since version 6 - but not so in U-Boot:int main (int argc, char **argv)
{
while (--argc > 0 && **++argv == '-') {
/* ====> */ while (*++*argv) {
switch (**argv) {
case 'd':
debug++;
break;
...
default:
usage ();
}
}
}
...
}The line marked "====>" will corrupt the malloc data structures and
usually cause U-Boot to crash when the next command gets executed by
the shell. With the modification, the compiler will prevent this with
an
error: increment of read-only location '*argv'N.B.: The code above can be trivially rewritten like this:
while (--argc > 0 && **++argv == '-') {
char *arg = *argv;
while (*++arg) {
switch (*arg) {
...Signed-off-by: Wolfgang Denk
Acked-by: Mike Frysinger
16 May, 2009
1 commit
-
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD
11 Sep, 2008
1 commit
-
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD
14 May, 2008
1 commit
-
Signed-off-by: Wolfgang Denk
12 May, 2008
2 commits
-
This reverts commit c0559be371b2a64b1a817088c3308688e2182f93
which is known to break booting from dataflash and NAND. -
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD
18 Apr, 2008
1 commit
-
This avoids an early global data reference.
Signed-off-by: Joakim Tjernlund
10 Jan, 2008
2 commits
-
Signed-off-by: Wolfgang Denk
-
This is an API for external (standalone) applications running on top of
U-Boot, and is meant to be more extensible and robust than the existing
jumptable mechanism. It is similar to UNIX syscall approach. See api/README
for more details.Included is the demo application using this new framework (api_examples).
Please note this is still an experimental feature, and is turned off by
default.Signed-off-by: Rafal Jaworowski