coreboot-kgpe-d16/src/cpu
Alexandru Gagniuc 72bb66eb9c x86/bootblock: Use LDFLAGS_bootblock to enable garbage collection
The x86 bootblock linking is a mess. The bootblock is treated in
a very special manner, and never received the update to link-time
garbage collection.

On newer x86 platforms, the boot media is no longer memory-mapped.
That means we need to do a lot more setup in the bootblock. ROMCC is
unsuitable for this task, and walkcbfs only works on memory-mapped
CBFS. We need to revise the x86 bootflow for this new case.

The approach this patch series takes is to perform CAR setup in the
bootblock, and load the following stage (either romstage or verstage)
from the boot media. This approach is not new, but has been done on
our ARM ports for years.

Since we will be adding .c files to the bootblock, it is prudent to
use link-time garbage collection. This is also consistent to how we
do things on other architectures. Unification FTW!

Change-Id: I16b78456df56e0053984a9aca9367e2542adfdc9
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/11781
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2015-10-07 03:08:58 +00:00
..
allwinner cbfs: new API and better program loading 2015-06-02 14:09:31 +02:00
amd cpu: microcode: Use microcode stored in binary format 2015-09-30 06:57:19 +00:00
armltd vboot2: add verstage 2015-01-27 01:41:40 +01:00
dmp x86/bootblock: Use LDFLAGS_bootblock to enable garbage collection 2015-10-07 03:08:58 +00:00
intel x86/bootblock: Use LDFLAGS_bootblock to enable garbage collection 2015-10-07 03:08:58 +00:00
mips Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
qemu-x86 qemu: initialize lapic 2015-09-14 17:23:26 +00:00
samsung/exynos5250 3rdparty: move to 3rdparty/blobs 2015-05-05 22:49:18 +02:00
ti Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
via cpu: microcode: Use microcode stored in binary format 2015-09-30 06:57:19 +00:00
x86 x86/bootblock: Use LDFLAGS_bootblock to enable garbage collection 2015-10-07 03:08:58 +00:00
Kconfig cpu/amd/car: Move AP stacks below the BSP stack to free up space 2015-07-07 01:41:59 +02:00
Makefile.inc cpu/Makefile.inc: Only inculde x86 subdir if ARCH_x86 is selected 2015-10-05 21:19:10 +00:00