From 3edf840ad15154d38769c0115811906284762b11 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 5 Jul 2021 21:18:50 +0200 Subject: cpu/x86/64bit: Turn jumping to long mode into a macro This makes it easier to reuse, e.g. if you want to do it twice in one assembly file. Change-Id: Ida861338004187e4e714be41e17c8447fa4cf935 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/79261 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/cpu/x86/smm/smm_stub.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cpu/x86/smm') diff --git a/src/cpu/x86/smm/smm_stub.S b/src/cpu/x86/smm/smm_stub.S index f97ab59cd9..9f1f21d974 100644 --- a/src/cpu/x86/smm/smm_stub.S +++ b/src/cpu/x86/smm/smm_stub.S @@ -12,6 +12,7 @@ #include #include #include +#include .code32 .section ".module_parameters", "aw", @progbits @@ -195,7 +196,7 @@ align_stack: #if ENV_X86_64 mov %ecx, %edi /* entry64.inc preserves ebx, esi, edi, ebp */ -#include + setup_longmode $(CONFIG_ARCH_X86_64_PGTBL_LOC) mov %edi, %ecx -- cgit v1.2.3