coreboot-kgpe-d16/src/mainboard/google/rambi
Aaron Durbin 9ef9d85976 bootstate: use structure pointers for scheduling callbacks
The GCC 4.9.2 update showed that the boot_state_init_entry
structures were being padded and assumed to be aligned in to an
increased size. The bootstate scheduler for static entries,
boot_state_schedule_static_entries(), was then calculating the
wrong values within the array. To fix this just use a pointer to
the boot_state_init_entry structure that needs to be scheduled.

In addition to the previous issue noted above, the .bs_init
section was sitting in the read only portion of the image while
the fields within it need to be writable. Also, the
boot_state_schedule_static_entries() was using symbol comparison
to terminate a loop which in C can lead the compiler to always
evaluate the loop at least once since the language spec indicates
no 2 symbols can be the same value.

Change-Id: I6dc5331c2979d508dde3cd5c3332903d40d8048b
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/8699
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2015-03-18 16:41:43 +01:00
..
acpi rambi: Add _PRW for LID0 ACPI Device 2014-12-31 05:26:01 +01:00
spd rambi: handle single channel configs 2014-05-07 22:08:04 +02:00
acpi_tables.c rambi/baytrail: ACPI, GPIO, audio, misc updates 2014-09-18 01:23:14 +02:00
board_info.txt Add board_info for all Google/Intel boards mitting the file 2014-10-17 10:12:08 +02:00
chromeos.c rambi: Unconditionally clear the EC recovery request 2014-12-31 05:25:44 +01:00
cmos.layout mainboard/cmos: Delete obsolete commented parameters 2015-02-16 09:23:02 +01:00
devicetree.cb rambi: configure USBPHY_COMPBG by the setting in devicetree.cb 2015-01-16 20:50:32 +01:00
dsdt.asl rambi/baytrail: ACPI, GPIO, audio, misc updates 2014-09-18 01:23:14 +02:00
ec.c intel boards: Use acpi_is_wakeup_s3() 2014-06-21 08:04:52 +02:00
ec.h rambi: update EC support 2014-05-06 17:18:54 +02:00
fadt.c baytrail: fix up FADT 2014-05-05 23:38:56 +02:00
gpio.c Rambi: Set SOC_DISP_ON as GPIO to avoid LCD_VCC glitch 2014-12-30 22:44:09 +01:00
irqroute.c baytrail: interrupt routing support 2014-05-05 23:38:38 +02:00
irqroute.h rambi/baytrail: ACPI, GPIO, audio, misc updates 2014-09-18 01:23:14 +02:00
Kconfig baytrail/rambi: S3 support and other updates 2014-10-22 03:22:25 +02:00
mainboard.c bootstate: use structure pointers for scheduling callbacks 2015-03-18 16:41:43 +01:00
mainboard_smi.c src: Too many terminators ';;' at end of stmts, stop Skynet 2014-11-09 12:26:34 +01:00
Makefile.inc baytrail/rambi: spi, charger, and audio updates 2014-09-19 21:38:48 +02:00
onboard.h rambi: Add _PRW for LID0 ACPI Device 2014-12-31 05:26:01 +01:00
romstage.c baytrail/rambi: spi, charger, and audio updates 2014-09-19 21:38:48 +02:00
w25q64.c baytrail/rambi: spi, charger, and audio updates 2014-09-19 21:38:48 +02:00