sh: Fix warning about uninitialized value of ramdisk_flagsSigned-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
sh: Add support load and boot of Initrd.Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Rename TEXT_BASE into CONFIG_SYS_TEXT_BASEThe change is currently needed to be able to remove the boardconfiguration scripting from the top level Makefile and replace it bya simple, table driven
Rename TEXT_BASE into CONFIG_SYS_TEXT_BASEThe change is currently needed to be able to remove the boardconfiguration scripting from the top level Makefile and replace it bya simple, table driven script.Moving this configuration setting into the "CONFIG_*" name space isalso desirable because it is needed if we ever should move forward toa Kconfig driven configuration system.Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
Make sure that argv[] argument pointers are not modified.The hush shell dynamically allocates (and re-allocates) memory for theargument strings in the "char *argv[]" argument vector passed tocomm
Make sure that argv[] argument pointers are not modified.The hush shell dynamically allocates (and re-allocates) memory for theargument strings in the "char *argv[]" argument vector passed tocommands. Any code that modifies these pointers will cause seriouscorruption of the malloc data structures and crash U-Boot, so makesure the compiler can check that no such modifications are being doneby changing the code into "char * const argv[]".This modification is the result of debugging a strange crash causedafter adding a new command, which used the following argumentprocessing code which has been working perfectly fine in all Unixsystems 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 andusually cause U-Boot to crash when the next command gets executed bythe shell. With the modification, the compiler will prevent this withan 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 <wd@denx.de>Acked-by: Mike Frysinger <vapier@gentoo.org>
sh: Fix overflow problem in get_ticksSigned-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Move lib_$ARCH directories to arch/$ARCH/libAlso move lib_$ARCH/config.mk to arch/$ARCH/config.mkThis change is intended to clean up the top-level directory structureand more closely mimic Linux
Move lib_$ARCH directories to arch/$ARCH/libAlso move lib_$ARCH/config.mk to arch/$ARCH/config.mkThis change is intended to clean up the top-level directory structureand more closely mimic Linux's directory organization.Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
123