summaryrefslogtreecommitdiffstats
path: root/src/arch/x86/Makefile.inc
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2018-12-26 15:12:32 +0100
committerPatrick Rudolph <siro@das-labor.org>2020-08-14 17:55:26 +0000
commit8daa12f7e0ceca9ebf4c5e91a590a896e7f4413c (patch)
tree3b9f9920bf4d72659033fa631db8a0ee54547a76 /src/arch/x86/Makefile.inc
parent228d0e50789674be848f68f35f40570d8c3dd49c (diff)
downloadcoreboot-8daa12f7e0ceca9ebf4c5e91a590a896e7f4413c.tar.gz
coreboot-8daa12f7e0ceca9ebf4c5e91a590a896e7f4413c.tar.bz2
coreboot-8daa12f7e0ceca9ebf4c5e91a590a896e7f4413c.zip
arch/x86/postcar: Add x86_64 support
* Add support for loading GDT on x86_64. * Add x86_64 assembly code to do the same as the x86_32 code. * Separate x86_32 and x86_64 code. Tested on qemu x86_32 and x86_64 using additional MTRRs. Tested on Lenovo T410 with additional x86_64 patches. Change-Id: I1c190627f5f0ed6f82738cb99423892382899d7b Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/30500 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86/Makefile.inc')
-rw-r--r--src/arch/x86/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index 17ab3dc9b9b1..5bba47f0b5e0 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -195,7 +195,11 @@ endif # CONFIG_ARCH_ROMSTAGE_X86_32 / CONFIG_ARCH_ROMSTAGE_X86_64
# postcar
###############################################################################
+ifeq ($(CONFIG_ARCH_POSTCAR_X86_32),y)
$(eval $(call create_class_compiler,postcar,x86_32))
+else
+$(eval $(call create_class_compiler,postcar,x86_64))
+endif
postcar-generic-ccopts += -D__POSTCAR__
postcar-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.c