9
0
Fork 0
barebox/scripts
Krzysztof Halasa c5baa0edc4 Fix error handling with malloc, memalign etc. Introduce xmemalign().
The idea is to panic() when there is no memory available for normal
operation. Exception: code which can consume arbitrary amount of RAM
(example: files allocated in ramfs) must report error instead of panic().

This patch also fixes code which didn't check for NULL from malloc() etc.

Usage: malloc(), memalign() return NULL when out of RAM.
xmalloc(), xmemalign() always return non-NULL or panic().

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 10:21:22 +01:00
..
basic Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
kconfig Kconfig: sync with linux kernel v2.6.36-rc1-168-ge36c886 2010-08-22 13:12:27 +08:00
mod Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
setupmbr x86: fix out of tree build support 2010-11-17 12:14:57 +08:00
.gitignore rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
Kbuild.include svn_rev_008 2007-07-05 18:01:13 +02:00
Makefile Add a tool to activate barebox as a boot loader on x86 architectures 2010-01-14 10:06:15 +01:00
Makefile.build svn_rev_008 2007-07-05 18:01:13 +02:00
Makefile.clean do not include Kbuild in Makefile.clean. We neither have it nor need it. 2007-10-17 19:05:01 +02:00
Makefile.host svn_rev_008 2007-07-05 18:01:13 +02:00
Makefile.lib rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
Makefile.modpost rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
bareboxenv.c rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
bin2c.c svn_rev_429 2007-07-05 18:01:53 +02:00
checkpatch.pl scripts: Adapt checkpatch.pl for barebox. 2010-11-29 21:56:05 +01:00
compiler.h host: introduce compiler.h to handle host include 2010-09-24 09:50:32 +02:00
doxy_filter.awk doc: add macros to unify command help with doxygen 2010-11-01 16:23:08 +01:00
gen_netx_image.c rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
genenv barebox_default_env: fix out of tree build 2010-07-22 15:49:02 +02:00
kallsyms.c add kallsyms.c from linux kernel 2007-09-28 19:59:50 +02:00
mkimage.c image: remove confusing image_check_* functions 2010-10-13 17:39:49 +02:00
mkmakefile Add scripts/mkmakefile from Linux. This is necessary if you want to 2007-11-09 11:47:07 +01:00
mksysmap rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
netconsole add netconsole host script 2010-06-24 17:37:00 +02:00
setlocalversion Build system: Use setlocalversion from kernel 2008-09-02 15:48:06 +02:00