arch/x86/include/mode_switch: Add more wrapper functions

Add a protected mode wrapper function that takes three arguments.
This is already supported by the called assembly code.

Change-Id: Ia8c91eebae17e4ca27e391454c2d130a71c4c9f3
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79756
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Patrick Rudolph 2023-12-31 12:30:50 +01:00 committed by Felix Held
commit ddc19b3341
2 changed files with 31 additions and 9 deletions

View file

@ -4,8 +4,8 @@
.text
.code64
.section ".text.protected_mode_call", "ax", @progbits
.globl protected_mode_call_3arg
protected_mode_call_3arg:
.globl protected_mode_call_wrapper
protected_mode_call_wrapper:
/* Preserve registers */
push %rbp
push %rbx