opnsense-ports/sysutils/u-boot-master/files/patch-cmd_elf.c
Franco Fichtner 85d066a61f */*: sync with upstream
Taken from: HardenedBSD
2018-09-03 02:25:18 +02:00

14 lines
350 B
C

--- cmd/elf.c.orig 2018-07-09 14:24:14 UTC
+++ cmd/elf.c
@@ -153,6 +153,11 @@ static unsigned long do_bootelf_exec(ulong (*entry)(in
{
unsigned long ret;
+ if (dcache_status())
+ flush_dcache_all();
+ if (icache_status())
+ invalidate_icache_all();
+
/*
* pass address parameter as argv[0] (aka command name),
* and all remaining args