Invalidating the D-cache after disabling it turned out to be a bad idea
authorkettenis <kettenis@openbsd.org>
Sun, 10 Mar 2024 15:37:54 +0000 (15:37 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 10 Mar 2024 15:37:54 +0000 (15:37 +0000)
commit1e370e58d3883de2a29a72d4f2e2ca1e36fe3801
treef28910d5487c00acdce40f5767713dc7edafb500
parent6e1e34013c14fd36bf34a45f49c9e99fa27187df
Invalidating the D-cache after disabling it turned out to be a bad idea
and broke Allwinner SoCs with Cortex-A7 cores.  So skip that and also
invalidate the I-cache before disabling it.  This seems to work better
on a wide range of boards.

ok deraadt@, jmatthew@
sys/arch/armv7/stand/efiboot/conf.c
sys/arch/armv7/stand/efiboot/exec.c