coreboot-kgpe-d16/payloads/libpayload/libc
Marc Jones 987e883e6a Make libpayload alloc() memory pointers volatile
gcc4.6.2 was optimizing the libpayload alloc() function and failing to
reload a pointer after the memory had been manipulated by a pointer in
the inlined function setup(). Change the pointer type to volatile
and now pass it to the setup() function. Also clean up the
declaration so that it isn't cast a bunch times in the function.

Change-Id: I1637bd7bd5d9cf82ac88925cbfe76d319aa3cd82
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Reviewed-on: http://review.coreboot.org/705
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2012-03-10 14:19:42 +01:00
..
Makefile.inc libpayload: Add liblzma, libcbfs 2011-08-04 08:11:21 +02:00
args.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
console.c don't initialize "in" as it is initialized again one line below. 2009-04-29 19:09:19 +00:00
ctype.c fix typo in ctype.c 2008-08-19 16:53:47 +00:00
exec.c [PATCH] libpayload: rename config.h to libpayload-config.h 2008-11-24 17:54:46 +00:00
getopt_long.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
ipchecksum.c trivial fix: ipchksum takes an unspecified input blob, not explicitly a number of shorts. 2008-08-16 15:16:36 +00:00
lar.c Catch various cases in libpayload where malloc() or memalign() return NULL 2009-07-31 11:39:55 +00:00
lib.c libpayload: Provide dummy getenv() 2011-07-20 10:02:19 +02:00
malloc.c Make libpayload alloc() memory pointers volatile 2012-03-10 14:19:42 +01:00
memory.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
printf.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
qsort.c libpayload: remove trailing whitespace and run dos2unix 2011-11-01 19:08:23 +01:00
rand.c Add rand/rand_r/srand functions for generating pseudo-random bytes. 2008-04-07 23:33:50 +00:00
readline.c Catch various cases in libpayload where malloc() or memalign() return NULL 2009-07-31 11:39:55 +00:00
string.c libpayload: Some more compatibility (for flashrom) 2011-08-17 16:26:20 +02:00
strings.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
strlcpy.c libpayload: Implement strlcpy 2011-07-07 22:29:35 +02:00
sysinfo.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
time.c This change adds PPC support to libpayload, and hooks it up in the build 2009-05-21 10:02:52 +00:00