diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2024-08-21 12:54:11 +0200 |
---|---|---|
committer | Arthur Heymans <arthur@aheymans.xyz> | 2024-08-27 00:26:32 +0000 |
commit | 7a044ef255a7b321c4543a9b3f9281b52e4eadc7 (patch) | |
tree | 3c87733fed44553e5df4b4a1ba1a51d822af64d2 /payloads/libpayload/arch/x86/pt.S | |
parent | 1b130244911c608cd37fbfa241b7692e91cdd911 (diff) |
libpayload: Use defined length movs
This fixes building with clang.
Change-Id: I2fabe7fbe3f8afac5c1128debf2e09a484f26fc5
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84008
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'payloads/libpayload/arch/x86/pt.S')
-rw-r--r-- | payloads/libpayload/arch/x86/pt.S | 8 |
1 files changed, 4 insertions, 4 deletions
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 |