freebsd-ports/sysutils/u-boot-master/files/patch-api_api.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
278 B
C

--- api/api.c.orig 2018-07-09 14:24:14 UTC
+++ api/api.c
@@ -289,6 +289,11 @@ static int API_dev_close(va_list ap)
if (!err)
di->state = DEV_STA_CLOSED;
+ if (dcache_status())
+ flush_dcache_all();
+ if (icache_status())
+ invalidate_icache_all();
+
return err;
}