[U-Boot] [PATCH 18/30] riscv: invalidate the instruction cache before jumping to Linux
Lukas Auer
lukas.auer at aisec.fraunhofer.de
Fri Oct 19 22:07:31 UTC 2018
Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
---
arch/riscv/lib/bootm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c
index a7a9fb921b..bc1d4b2864 100644
--- a/arch/riscv/lib/bootm.c
+++ b/arch/riscv/lib/bootm.c
@@ -38,6 +38,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
return 1;
kernel = (void (*)(ulong, void *))images->ep;
+ invalidate_icache_all();
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
--
2.17.2
More information about the U-Boot
mailing list