Skip to content

Commit

Permalink
efi/arm: Pass start and end addresses to cache_clean_flush()
Browse files Browse the repository at this point in the history
In preparation for turning the decompressor's cache clean/flush
operations into proper by-VA maintenance for v7 cores, pass the
start and end addresses of the regions that need cache maintenance
into cache_clean_flush in registers r0 and r1.

Currently, all implementations of cache_clean_flush ignore these
values, so no functional change is expected as a result of this
patch.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
  • Loading branch information
Ard Biesheuvel committed Feb 22, 2020
1 parent c722549 commit e951a1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/boot/compressed/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,12 @@ ENTRY(efi_stub_entry)

@ Preserve return value of efi_entry() in r4
mov r4, r0
add r1, r4, #SZ_2M @ DT end
bl cache_clean_flush

ldr r0, [sp] @ relocated zImage
ldr r1, =_edata @ size of zImage
add r1, r1, r0 @ end of zImage
bl cache_clean_flush

@ The PE/COFF loader might not have cleaned the code we are
Expand Down

0 comments on commit e951a1f

Please sign in to comment.