From 7a044ef255a7b321c4543a9b3f9281b52e4eadc7 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 21 Aug 2024 12:54:11 +0200 Subject: libpayload: Use defined length movs This fixes building with clang. Change-Id: I2fabe7fbe3f8afac5c1128debf2e09a484f26fc5 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/84008 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- payloads/libpayload/arch/x86/pt.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'payloads/libpayload') diff --git a/payloads/libpayload/arch/x86/pt.S b/payloads/libpayload/arch/x86/pt.S index 9b085e53ff..0e6e7bffef 100644 --- a/payloads/libpayload/arch/x86/pt.S +++ b/payloads/libpayload/arch/x86/pt.S @@ -97,8 +97,8 @@ setup_2mb: mov $main_page_table, %esi loop_2mb: - mov %eax, (%rsi, %rcx, 8) - mov $0, 4(%rsi, %rcx, 8) + movl %eax, (%rsi, %rcx, 8) + movl $0, 4(%rsi, %rcx, 8) add $0x200000, %eax inc %ecx cmp %edi, %ecx @@ -111,8 +111,8 @@ loop_2mb: mov $extra_page_table, %esi fill_extra_page_table: - mov %eax, (%rsi, %rcx, 8) - mov $0, 4(%rsi, %rcx, 8) + movl %eax, (%rsi, %rcx, 8) + movl $0, 4(%rsi, %rcx, 8) add $4096, %eax inc %ecx cmp %edi, %ecx -- cgit v1.2.3