coreboot-kgpe-d16/src/include
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
..
boot lib: add common write_tables() implementation 2016-04-21 20:49:05 +02:00
console console: Change CONFIG_CHROMEOS requirement from do_printk_va_list() 2016-08-16 23:14:30 +02:00
cpu src/include: Capitalize APIC and SMM 2016-08-23 15:43:14 +02:00
device SPD: fix DDR3 SDRAM memory module types 2016-06-24 18:15:09 +02:00
pc80 pc80/mc146818rtc.h: Replace leftover macro token 2016-08-18 22:45:17 +02:00
smp
superio
sys
tpm_lite tpm2: implement locking firmware rollback counter 2016-07-14 00:00:14 +02:00
antirollback.h vboot2: tpm2 factory initialization. 2016-07-12 00:27:27 +02:00
assert.h
b64_decode.h
base3.h
bcd.h
boardid.h
boot_device.h lib/boot_device: add RW boot device construct 2016-08-19 03:07:05 +02:00
bootblock_common.h bootblock: Declare common bootblock_pre_c_entry routine 2016-06-12 14:52:17 +02:00
bootmem.h lib/bootmem: allow architecture specific bootmem ranges 2016-04-21 20:46:45 +02:00
bootmode.h bootmode: Get rid of CONFIG_BOOTMODE_STRAPS 2016-07-28 00:36:22 +02:00
bootstate.h lib: Add Kconfig to toggle boot state debugging 2016-02-18 00:01:14 +01:00
cbfs.h src/include: Capitalize CPU, RAM and ROM 2016-07-31 18:30:16 +02:00
cbmem.h intel/model_206ax: Move platform specific defines 2016-06-17 00:22:10 +02:00
delay.h
edid.h edid: Make framebuffer row alignment configurable 2016-04-07 20:46:38 +02:00
elog.h drivers/elog: provide return status for all operations 2016-08-09 19:53:21 +02:00
endian.h
fallback.h
fmap.h lib/fmap: provide RW region device support 2016-08-19 18:17:04 +02:00
gic.h src/include: Capitalize CPU, RAM and ROM 2016-07-31 18:30:16 +02:00
gpio.h lib/gpio: add pullup & pulldown gpio_base2_value() variants 2016-07-07 20:44:36 +02:00
halt.h lib: add poweroff() declaration 2016-07-15 08:35:15 +02:00
imd.h
inttypes.h
ip_checksum.h
kconfig.h
lib.h lib: remove ulzma() 2016-07-01 23:55:16 +02:00
main_decl.h arches: lib: add main_decl.h for main() declaration 2016-02-11 23:29:08 +01:00
memlayout.h memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG() 2016-08-23 21:33:29 +02:00
memory_info.h
memrange.h lib/memrange: add function to initialize range_entry 2016-03-09 16:46:16 +01:00
nhlt.h lib/nhlt: drop nhlt_soc_add_endpoint() 2016-06-29 23:15:37 +02:00
option.h
program_loading.h intel post-car: Consolidate choose_top_of_stack() 2016-07-10 11:16:07 +02:00
reg_script.h lib/reg_script: Add display support 2016-05-04 19:21:40 +02:00
reset.h soc/intel/common: Add reset_prepare() for common reset 2016-07-19 20:20:13 +02:00
rmodule.h src/include: Capitalize CPU, RAM and ROM 2016-07-31 18:30:16 +02:00
romstage_handoff.h
rtc.h lib: Add real-time-clock functions 2016-06-24 20:22:05 +02:00
rules.h arch/x86: introduce postcar stage/phase 2016-03-23 14:24:30 +01:00
sdram_mode.h
smbios.h SMBIOS: Implement SKU field 2016-06-02 06:24:24 +02:00
spd.h SPD: Add CAS latency 2 2016-07-12 15:17:31 +02:00
spd_cache.h
spd_ddr2.h SPD: fix and add DDR2 SDRAM memory module types 2016-06-24 18:09:18 +02:00
spi-generic.h
spi_flash.h
stage_cache.h
stddef.h stddef.h: fix zeroptr's definition 2016-04-15 16:18:57 +02:00
stdlib.h
string.h
swab.h
symbols.h memlayout: Add symbols for stage bounds 2016-02-22 21:38:07 +01:00
thread.h
timer.h
timestamp.h
tpm.h
trace.h
types.h
vbe.h
version.h
watchdog.h
wrdd.h Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00