coreboot-kgpe-d16/payloads/libpayload
Jordan Crouse 24a0404759 libpayload: Fix malloc allocation
Apparently the previous version worked on luck.  Fix the allocation
and add parens to better guide the compiler.  Also, halt() if 
the heap is poisoned (like by an overrun).  Finally, fix calloc()
so that it actually works.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Peter Stuge <peter@stuge.se>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3269 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-04-25 23:08:47 +00:00
..
bin libpayload: Implement gcc wrappers for libpayload 2008-04-09 23:05:59 +00:00
crypto Add a SHA-1 implementation to libpayload. 2008-04-03 23:01:23 +00:00
curses libpayload: Fix keyboard buglet 2008-04-21 22:33:58 +00:00
drivers Move curses/speaker.c to drivers/ as it's not curses-specific (trivial). 2008-04-15 17:24:08 +00:00
i386 Drop unneeded #includes, add EXIT_SUCCESS/EXIT_FAILURE (trivial). 2008-04-11 20:16:24 +00:00
include Drop unneeded #includes, add EXIT_SUCCESS/EXIT_FAILURE (trivial). 2008-04-11 20:16:24 +00:00
lib libpayload: Implement gcc wrappers for libpayload 2008-04-09 23:05:59 +00:00
libc libpayload: Fix malloc allocation 2008-04-25 23:08:47 +00:00
sample libpayload: Fix keyboard buglet 2008-04-21 22:33:58 +00:00
util/kconfig Change kconfig references from 'buildrom' to 'libpayload'. 2008-03-20 01:58:08 +00:00
Config.in Various small consistency fixes (trivial): 2008-04-11 18:01:50 +00:00
LICENSES Add rand/rand_r/srand functions for generating pseudo-random bytes. 2008-04-07 23:33:50 +00:00
Makefile libpayload: Avoid .svn files in the header install 2008-04-10 17:57:42 +00:00
README

README

This is libpayload, a minimal library to support standalone payloads
that can be booted with firmware like coreboot.  It handles the setup
code, and provides common C library symbols such as malloc() and
printf().

Please see the sample/ directory for an example of the payload in
action.