24a0404759
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 |
||
---|---|---|
.. | ||
bin | ||
crypto | ||
curses | ||
drivers | ||
i386 | ||
include | ||
lib | ||
libc | ||
sample | ||
util/kconfig | ||
Config.in | ||
LICENSES | ||
Makefile | ||
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.