summaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2023-12-31 12:30:50 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-01-05 14:36:14 +0000
commitddc19b334168f51d9c9919ec5aaf073daf7fbb35 (patch)
tree813db7c86154f2982e6aa692a8e044beab47267d /src/cpu/x86
parent1d718def057770194f9fb5111201baf43ce7c838 (diff)
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>
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/64bit/mode_switch.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/x86/64bit/mode_switch.S b/src/cpu/x86/64bit/mode_switch.S
index f9f784e8c4..c4198f3dad 100644
--- a/src/cpu/x86/64bit/mode_switch.S
+++ b/src/cpu/x86/64bit/mode_switch.S
@@ -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