mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 04:51:17 +02:00
spl: Allow ATF to work when dcache is disabled
The dcache may not be enabled in SPL. Add a check to avoid trying to use an undefined function. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -204,6 +204,7 @@ static void __noreturn bl31_entry(uintptr_t bl31_entry, uintptr_t bl32_entry,
|
|||||||
fdt_addr);
|
fdt_addr);
|
||||||
|
|
||||||
raw_write_daif(SPSR_EXCEPTION_MASK);
|
raw_write_daif(SPSR_EXCEPTION_MASK);
|
||||||
|
if (!CONFIG_IS_ENABLED(SYS_DCACHE_OFF))
|
||||||
dcache_disable();
|
dcache_disable();
|
||||||
|
|
||||||
atf_entry(bl31_params, (void *)fdt_addr);
|
atf_entry(bl31_params, (void *)fdt_addr);
|
||||||
|
Reference in New Issue
Block a user