Files
OpenCellular/src/lib
Julius Werner dbe0df1992 Add and consistently use wrapper macro for romstage static variables
x86 systems run their romstage as execute-in-place from flash, which
prevents them from having writable data segments. In several code pieces
that get linked into both romstage and ramstage, this has been worked
around by using a local variable and having the 'static' storage class
guarded by #ifndef __PRE_RAM__.

However, x86 is the only architecture using execute-in-place (for now),
so it does not make sense to impose the restriction globally. Rather
than fixing the #ifdef at every occurrence, this should really be
wrapped in a way that makes it easier to modify in a single place. The
chromeos/cros_vpd.c file already had a nice approach for a wrapper
macro, but unfortunately restricted it to one file... this patch moves
it to stddef.h and employs it consistently throughout coreboot.

BRANCH=nyan
BUG=None
TEST=Measured boot time on Nyan_Big before and after, confirmed that it
gained 6ms from caching the FMAP in vboot_loader.c.

Original-Change-Id: Ia53b94ab9c6a303b979db7ff20b79e14bc51f9f8
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/203033
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
(cherry picked from commit c8127e4ac9811517f6147cf019ba6a948cdaa4a5)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: I44dacc10214351992b775aca52d6b776a74ee922
Reviewed-on: http://review.coreboot.org/8055
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
2015-03-09 22:42:28 +01:00
..
2014-05-01 15:39:26 +02:00
2015-01-13 21:30:14 +01:00
2013-07-10 20:17:51 +02:00
2003-07-19 04:28:22 +00:00
2013-07-10 20:17:51 +02:00
2013-05-01 07:08:44 +02:00
2013-01-12 19:09:55 +01:00
2013-07-10 20:17:51 +02:00
2014-11-30 12:20:05 +01:00
2010-02-22 16:41:49 +00:00
2013-09-17 21:04:35 +02:00
2014-12-04 19:17:51 +01:00
2015-01-27 22:54:32 +01:00
2009-01-20 21:40:16 +00:00
2004-03-13 03:40:29 +00:00
2009-01-20 21:40:16 +00:00
2015-01-09 16:50:55 +01:00
2015-01-27 22:54:32 +01:00
2014-09-12 22:03:53 +02:00
2014-08-07 23:55:15 +02:00
2015-02-06 00:25:59 +01:00