coreboot/src/lib
Kyösti Mälkki ef84401149 Add directive __SIMPLE_DEVICE__
The tests for __PRE_RAM__ or __SMM__ were repeatedly used
for detection if dev->ops in the devicetree are not available
and simple device model functions need be used.

If a source file build for ramstage had __PRE_RAM__ inserted
at the beginning, the struct device would no longer match the
allocation the object had taken. This problem is fixed by
replacing such cases with explicit __SIMPLE_DEVICE__.

Change-Id: Ib74c9b2d8753e6e37e1a23fcfaa2f3657790d4c0
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/3555
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
2013-08-01 15:57:11 +02:00
..
cbfs.c cbfs: fix relocation ramstage compiler errors 2013-03-23 19:34:15 +01:00
cbfs_core.c CBFS: Use memmove instead of memcpy when loading a file from CBFS. 2013-07-15 18:53:37 +02:00
cbmem.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
cbmem_console.c Fix CBMEM console use with CAR_MIGRATION 2013-07-11 05:04:22 +02:00
cbmem_info.c AMD Fam15tn: Add support for AGESA runtime allocation in CBMEM 2013-06-24 00:53:52 +02:00
clog2.c
compute_ip_checksum.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
coreboot_table.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
debug.c
delay.c
dynamic_cbmem.c x86: add cache-as-ram migration option 2013-05-16 01:29:50 +02:00
edid.c FUI: reorganize include files 2013-07-10 02:39:42 +02:00
fallback_boot.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
gcc.c
gcov-glue.c coverage: use boot state callbacks 2013-05-01 07:08:44 +02:00
gcov-io.c
gcov-io.h lib: Fix spelling 2013-07-10 20:17:51 +02:00
gcov-iov.h
generic_dump_spd.c
generic_sdram.c
hardwaremain.c Drop ELF remains from boot code 2013-07-10 21:43:55 +02:00
jpeg.c
jpeg.h
libgcov.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
lzma.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
lzmadecode.c
lzmadecode.h
Makefile.inc CBFS: Use memmove instead of memcpy when loading a file from CBFS. 2013-07-15 18:53:37 +02:00
malloc.c
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
memset.c
ne2k.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
nrv2b.c
ns8390.h
ramtest.c ramtest.c: Add silent ram_check 2013-06-10 22:30:39 +02:00
rmodule.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
rmodule.ld boot state: schedule static callbacks 2013-05-01 07:06:12 +02:00
selfboot.c Drop ELF remains from boot code 2013-07-10 21:43:55 +02:00
spkmodem.c spkmodem console 2013-04-18 22:47:59 +02:00
stack.c
thread.c coreboot: add thread cooperative multitasking 2013-05-14 05:18:47 +02:00
timer_queue.c coreboot: add timer queue implementation 2013-05-01 07:19:12 +02:00
timestamp.c Rename hardwaremain() to main() 2013-07-10 02:40:30 +02:00
trace.c
uart8250.c
uart8250mem.c Add directive __SIMPLE_DEVICE__ 2013-08-01 15:57:11 +02:00
usbdebug.c usbdebug: Fix missing include 2013-07-30 08:25:19 +02:00
version.c
xmodem.c