coreboot-kgpe-d16/src/cpu/x86
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
..
16bit x86/bootblock: Use LDFLAGS_bootblock to enable garbage collection 2015-10-07 03:08:58 +00:00
32bit x86: link romstage like the other architectures 2015-09-09 19:35:12 +00:00
cache post code: Replaced hard-coded post code with macro 2012-01-23 22:50:56 +01:00
lapic indent style fix for lapic_cpu_init.c 2015-07-17 17:53:06 +02:00
mtrr Verify Kconfigs symbols are not zero for hex and int type symbols 2015-07-12 19:06:44 +02:00
name Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
pae cpu/x86/pae/pgtbl.c: Unsigned comparison < 0 always false 2014-06-29 13:02:13 +02:00
smm linking: add and use LDFLAGS_common 2015-09-09 19:35:54 +00:00
tsc x86: remove printk() from init_timer() 2015-06-09 22:25:41 +02:00
car.c amd: raminit sysinfo offset fix 2015-08-13 16:10:17 +02:00
fpu_enable.inc Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
Kconfig smm: Merge configs SMM_MODULES and SMM_TSEG 2015-05-28 22:07:58 +02:00
Makefile.inc rmodule: use program.ld for linking 2015-09-09 19:35:30 +00:00
mirror_payload.c x86: fix mirror_payload() 2015-06-02 14:09:47 +02:00
mp_init.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
sipi_vector.S rmodule: use program.ld for linking 2015-09-09 19:35:30 +00:00
sse_enable.inc Remove empty lines at end of file 2015-06-08 00:55:07 +02:00