switch-coreboot/src
Julius Werner 85b1aadcc1 memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG()
The timestamp code asserts that the _timestamp region (allocated in
memlayout for pre-RAM stages) is large enough for the assumptions it
makes. This is good, except that we often initialize timestamps
extremely early in the bootblock, even before console output. Debugging
a BUG() that hits before console_init() is no fun.

This patch adds a link-time assertion for the size of the _timestamp
region in memlayout to prevent people from accidentally running into
this issue.

Change-Id: Ibe4301fb89c47fde28e883fd11647d6b62a66fb0
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/16270
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
2016-08-23 21:33:29 +02:00
..
acpi src/acpi: Capitalize ACPI and SATA 2016-07-31 19:25:40 +02:00
arch arch/riscv: Delegate exceptions to supervisor mode if appropriate 2016-08-23 16:05:16 +02:00
commonlib commonlib/region: allow empty mmap()/munmap() in region_device_ops 2016-08-15 21:03:06 +02:00
console console: Add write line routine 2016-08-10 22:30:19 +02:00
cpu src/cpu: Capitalize CPU, APIC and IOAPIC typo fix 2016-08-23 15:43:58 +02:00
device src/device: Capitalize CPU, RAM and ROM 2016-07-31 18:33:30 +02:00
drivers drivers/spi: be sure to call spi_init() before spi_flash_probe() 2016-08-23 15:17:00 +02:00
ec google/chromeec: Ensure data is ready before reading it 2016-08-20 10:48:37 +02:00
include memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG() 2016-08-23 21:33:29 +02:00
lib memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG() 2016-08-23 21:33:29 +02:00
mainboard src/mainboard: Remove unnecessary whitespace before "\n" 2016-08-23 15:46:03 +02:00
northbridge src/northbridge: Remove unnecessary whitespace before "\n" and "\t" 2016-08-23 15:43:27 +02:00
soc soc/intel/apollolake: Use CONFIG_NHLT_DMIC_2CH_16B for dmic 2016-08-23 15:42:36 +02:00
southbridge src/southbridge: Remove unnecessary whitespace before "\n" and "\t" 2016-08-23 15:45:33 +02:00
superio superio/*: Relocate Kconfig to chip folder. 2016-08-09 10:38:30 +02:00
vboot vboot/vbnv_flash: make I/O connection agnostic 2016-08-19 18:18:57 +02:00
vendorcode drivers/elog: use region_device for NV storage 2016-08-19 18:18:08 +02:00
Kconfig arch/riscv: Print the page table structure after construction 2016-08-23 16:04:55 +02:00