Save environment data to mmc.This patch is to save environment data to mmc card.It uses interfaces defined in generic mmc.Signed-off-by: Terry Lv <r65388@freescale.com>Acked-by: Stefano Babic <
Save environment data to mmc.This patch is to save environment data to mmc card.It uses interfaces defined in generic mmc.Signed-off-by: Terry Lv <r65388@freescale.com>Acked-by: Stefano Babic <sbabic@denx.de>
show more ...
Rename getenv_r() into getenv_f()While running from flash, i. e. before relocation, we have only alimited C runtime environment without writable data segment. In thisphase, some configurations (f
Rename getenv_r() into getenv_f()While running from flash, i. e. before relocation, we have only alimited C runtime environment without writable data segment. In thisphase, some configurations (for example with environment in EEPROM)must not use the normal getenv(), but a special function. Thisfunction had been called getenv_r(), with the idea that the "_r"suffix would mean the same as in the _r_eentrant versions of some ofthe C library functions (for example getdate vs. getdate_r, getgrentvs. getgrent_r, etc.).Unfortunately this was a misleading name, as in U-Boot the "_r"generally means "running from RAM", i. e. _after_ relocation.To avoid confusion, rename into getenv_f() [as "running from flash"]Signed-off-by: Wolfgang Denk <wd@denx.de>Acked-by: Detlev Zundel <dzu@denx.de>
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>
ARM: remove unused VIDEOLFB ATAGATAG_VIDEOLFB is not used anywhere.The belowing warning is occurred due to this ATAG.[ 0.000000] Ignoring unrecognised tag 0x54410008This patch fixed it.Si
ARM: remove unused VIDEOLFB ATAGATAG_VIDEOLFB is not used anywhere.The belowing warning is occurred due to this ATAG.[ 0.000000] Ignoring unrecognised tag 0x54410008This patch fixed it.Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>Acked-by: Martin Krause <Martin.Krause@tqs.de>
ARM: add __aeabi_unwind_cpp_pr0() function to avoid linker complaintsSigned-off-by: Wolfgang Denk <wd@denx.de>Tested-by: Thomas Weber <weber@corscience.de>
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>
1...<<111213141516171819