
28 Jan
2017
28 Jan
'17
8:33 p.m.
On Thu, Jan 26, 2017 at 05:46:11PM +0100, Emmanuel Vadot wrote:
From: Warner Losh imp@freebsd.org
FreeBSD loader(8) just loaded code to some random location that may contain stale icache entries. FreeBSD Kernel needs the icache and dcache flushed. Before running either one of them, flush the icache and dcache.
This could probably be expanded to note that in general it's just always a good idea to flush icache/dcache prior to running whatever we're about to run. This isn't so much a FreeBSD thing as a generic thing.
Signed-off-by: Emmanuel Vadot manu@bidouilliste.com
Reviewed-by: Tom Rini trini@konsulko.com
--
Tom