summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch/x86
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-08-21 12:54:47 +0200
committerArthur Heymans <arthur@aheymans.xyz>2024-08-27 00:27:00 +0000
commitfec86226b205cacd1ec2c69eca45dbae1c89c69e (patch)
tree09ffc640de6a3647924aa1aa2f30dd51caf48d38 /payloads/libpayload/arch/x86
parent7a044ef255a7b321c4543a9b3f9281b52e4eadc7 (diff)
libpayload/x86: Fix assembly for clang
Change-Id: I81252dc2f89b3b3da0bb9a2388a041b600920b3f Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84009 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/arch/x86')
-rw-r--r--payloads/libpayload/arch/x86/exception_asm.S4
-rw-r--r--payloads/libpayload/arch/x86/exception_asm_64.S4
2 files changed, 4 insertions, 4 deletions
diff --git a/payloads/libpayload/arch/x86/exception_asm.S b/payloads/libpayload/arch/x86/exception_asm.S
index b3395d0e4b..042cf04523 100644
--- a/payloads/libpayload/arch/x86/exception_asm.S
+++ b/payloads/libpayload/arch/x86/exception_asm.S
@@ -71,7 +71,7 @@ exception_stub_\num:
.macro user_defined_stubs from, to
stub \from
.if \to-\from
- user_defined_stubs %(from+1),\to
+ user_defined_stubs %(\from+1),\to
.endif
.endm
@@ -231,7 +231,7 @@ gdt_ptr:
.macro user_defined_gates from, to
interrupt_gate exception_stub_\from
.if \to-\from
- user_defined_gates %(from+1),\to
+ user_defined_gates %(\from+1),\to
.endif
.endm
diff --git a/payloads/libpayload/arch/x86/exception_asm_64.S b/payloads/libpayload/arch/x86/exception_asm_64.S
index 6d91b937ac..0c1c536b50 100644
--- a/payloads/libpayload/arch/x86/exception_asm_64.S
+++ b/payloads/libpayload/arch/x86/exception_asm_64.S
@@ -71,7 +71,7 @@ exception_stub_\num:
.macro user_defined_stubs from, to
stub \from
.if \to-\from
- user_defined_stubs %(from+1),\to
+ user_defined_stubs %(\from+1),\to
.endif
.endm
@@ -277,7 +277,7 @@ gdt_ptr:
.macro user_defined_gates from, to
interrupt_gate exception_stub_\from
.if \to-\from
- user_defined_gates %(from+1),\to
+ user_defined_gates %(\from+1),\to
.endif
.endm