Sync data and instruction cache before entering an executable page
authorjca <jca@openbsd.org>
Sun, 13 Nov 2022 16:14:06 +0000 (16:14 +0000)
committerjca <jca@openbsd.org>
Sun, 13 Nov 2022 16:14:06 +0000 (16:14 +0000)
commit0b49f4e199b32fa9998095c3106fbb10e94b9ab3
treea5313d19c434c0530af0b9cbe663684673cc984c
parent67a10ba2366df7017b776ada734f425cd14cc7b0
Sync data and instruction cache before entering an executable page

Adapted from kettenis' fix for arm64/pmap.c.  Since we haven't been able
to reliably reproduce the clang crashes that affect base and ports, it
not yet known whether riscv64 was badly affected by this misordering.
Time will tell.  ok kettenis@
sys/arch/riscv64/riscv64/pmap.c