coreboot/src/cpu/x86
Patrick Rudolph a1f82532f2 cpu/x86/64bit: Back up/restore CR3 on mode switch
Store CR3 on stack and restore it when returning from protected
mode call, since the stage might have set up different page tables
than the default ones linked into all stages.

Tested: intel/archercity still boots to payload in x86_64.

Change-Id: If94a24925994ac9599be24f6454ea28d02ff0c67
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82164
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
2025-01-08 08:18:21 +00:00
..
64bit cpu/x86/64bit: Back up/restore CR3 on mode switch 2025-01-08 08:18:21 +00:00
cache cpu: Rename Makefiles from .inc to .mk 2024-01-24 08:35:01 +00:00
lapic cpu/x86/lapic: Always have LAPIC enabled 2024-08-11 17:06:41 +00:00
mtrr soc/intel/xeon_sp: Reserve PRMRR 2024-11-14 14:29:23 +00:00
name cpu: Rename Makefiles from .inc to .mk 2024-01-24 08:35:01 +00:00
pae cpu/x86/pae/pgtbl.c: extract reusable code from memset_pae() 2024-05-29 13:04:30 +00:00
smm cpu/x86/smm/smm_module_handler: Remove <commonlib/bsd/compiler.h> 2024-09-10 03:11:13 +00:00
tsc cpu: Rename Makefiles from .inc to .mk 2024-01-24 08:35:01 +00:00
backup_default_smm.c cpu/x86: Clean up includes 2022-10-26 16:37:34 +00:00
copy_data_section.inc x86: Add .data section support for pre-memory stages 2023-09-14 21:02:07 +00:00
early_reset.S
entry16.S commonlib/console/post_code.h: Change post code prefix to POSTCODE 2023-06-23 15:06:04 +00:00
entry32.S commonlib/console/post_code.h: Change post code prefix to POSTCODE 2023-06-23 15:06:04 +00:00
Kconfig cpu/x86/Kconfig: Add SMM Kconfig help 2024-06-09 12:01:00 +00:00
Kconfig.debug_cpu arch to cpu: Add SPDX license headers to Kconfig files 2024-02-18 01:58:52 +00:00
Makefile.mk lib: Remove heap from rmodules 2024-02-26 10:10:07 +00:00
mp_init.c cpu/x86/topology: Simplify CPU topology initialization 2024-12-17 17:24:15 +00:00
reset16.S
sipi_vector.S cpu/x86/(sipi|smm): Pass on CR3 from ramstage 2024-02-28 12:12:59 +00:00
smi_trigger.c cpu/x86/smi_trigger: use call_smm 2024-01-11 22:35:32 +00:00
smm_start32_offset.h.template cpu/x86/mp_init.c: Generate a C header to get start32 offset 2023-04-06 15:19:00 +00:00
topology.c cpu/x86/topology: Add module_id to CPU topology 2025-01-07 21:10:04 +00:00