1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-21 12:40:45 -04:00
ports/sysutils/u-boot-master/files/patch-cmd_elf.c
Emmanuel Vadot eade44cbf9 u-boot: Re-add cache patches
Some boards (like Allwinner ones) still needs them.
This fixes booting with ubldr.

Approved by:	bapt (implicit)
2018-09-01 20:43:36 +00: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