coreboot/src/cpu
Patrick Rudolph b4283a4fbb cpu/x86/64bit/mode_switch: Simplify assembly code
Drop the first argument specifying the number of arguments pushed
to the stack. Instead always push the 3 arguments to stack and use
the first one as function pointer to call while in protected mode.

While on it add more comments and simplify register restore code.

Tested:
- On qemu can call x86_32 function and pass argument and return
  value.
- Booted Lenovo X220 in x86_64 mode using x86_32 MRC.

Change-Id: I30809453a1800ba3c0df60acd7eca778841c520f
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79752
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2024-01-03 00:38:27 +00:00
..
amd cpu/amd/pi/00730F01: Use common code for mp_init 2023-08-08 20:27:50 +00:00
armltd cpu: Add SPDX license headers to Makefiles 2023-08-06 19:26:55 +00:00
intel Revert "cpu/intel/common: Define build time physical address reserved bits" 2023-12-22 12:26:42 +00:00
power9 src/cpu/power9: move part of scom.h to scom.c 2023-04-18 13:05:56 +00:00
qemu-power8 src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
qemu-x86 Revert "Kconfig: Bring HEAP_SIZE to a common, large value" 2023-11-07 17:35:39 +00:00
x86 cpu/x86/64bit/mode_switch: Simplify assembly code 2024-01-03 00:38:27 +00:00
Kconfig cpu: Enable per-CPUID microcode loading in CBFS 2023-07-08 12:06:00 +00:00
Makefile.inc cpu: Add SPDX license headers to Makefiles 2023-08-06 19:26:55 +00:00