mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: avoid duplicate weak invalidate_icache_all()
If multiple weak implementations of a weak function exist, it is unclear which one the linker should chose. cmd/cache.c already defines a weak invalidate_icache_all(). We don't need a call to invalidate_icache_all() on x86. ARM, RISC-V, and Sandbox provide an implementation. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
15a15e3feb
commit
19d41f495a
2 changed files with 13 additions and 7 deletions
|
@ -783,7 +783,12 @@ void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map)
|
|||
lastoff = offset;
|
||||
#endif
|
||||
|
||||
invalidate_icache_all();
|
||||
/*
|
||||
* If on x86 a write affects a prefetched instruction,
|
||||
* the prefetch queue is invalidated.
|
||||
*/
|
||||
if (!CONFIG_IS_ENABLED(X86))
|
||||
invalidate_icache_all();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue