coreboot/src
Patrick Rudolph b1ef725f39 cpu/qemu-x86: Add x86_64 bootblock support
Add support for x86_64 bootblock on qemu.

Introduce a new approach to long mode support. The previous patch set
generated page tables at runtime and placed them in heap. The new
approach places the page tables in memory mapped ROM.

Introduce a new tool called pgtblgen that creates x86 long mode compatible
page tables and writes those to a file. The file is included into the CBFS
and placed at a predefined offset.

Add assembly code to load the page tables, based on a Kconfig symbol and
enter long in bootblock.

The code can be easily ported to real hardware bootblock.

Tested on qemu q35.

Change-Id: Iec92c6cea464c97c18a0811e2e91bc22133ace42
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35680
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2019-11-04 11:58:58 +00:00
..
acpi
arch cpu/qemu-x86: Add x86_64 bootblock support 2019-11-04 11:58:58 +00:00
commonlib commonlib/helpers: Add alloca() macro 2019-10-30 08:20:39 +00:00
console console/kconfig: Move ONBOARD_VGA_IS_PRIMARY to 'devices' 2019-11-01 11:58:40 +00:00
cpu cpu/qemu-x86: Add x86_64 bootblock support 2019-11-04 11:58:58 +00:00
device console/kconfig: Move ONBOARD_VGA_IS_PRIMARY to 'devices' 2019-11-01 11:58:40 +00:00
drivers cpu/x86/tsc: Flip and rename TSC_CONSTANT_RATE to UNKNOWN_TSC_RATE 2019-11-03 06:15:35 +00:00
ec include: Remove EC_EVENT_* from elog.h 2019-11-04 11:43:49 +00:00
include include: Remove EC_EVENT_* from elog.h 2019-11-04 11:43:49 +00:00
lib cbfs: read header offset as explicitly LE 2019-11-04 11:56:04 +00:00
mainboard mb/google/hatch: update DLL values for Kindred 2019-11-04 11:55:24 +00:00
northbridge nb/intel/nehalem: Fix 'dead assignment' 2019-11-04 11:57:06 +00:00
security src/[northbridge,security]: change "unsigned" to "unsigned int" 2019-10-27 18:12:50 +00:00
soc soc/intel/broadwell: Use sb/intel/common/acpi/platform.asl 2019-11-04 11:48:34 +00:00
southbridge sb/intel/lynxpoint: Use sb/intel/common/platform.asl 2019-11-04 11:46:42 +00:00
superio superio/aspeed/common: add workaround for serial routing delay quirk 2019-11-04 11:42:29 +00:00
vendorcode vendorcode/eltan/security: Correct debug output 2019-11-04 11:32:46 +00:00
Kconfig src/Kconfig: Drop unused HAVE_POSTCAR 2019-11-01 11:58:59 +00:00