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>
This commit is contained in:
parent
1b13024491
commit
7a044ef255
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue