]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/pmap: Add pmap_sync_icache() for radix pmap
authorJustin Hibbits <jhibbits@FreeBSD.org>
Sun, 12 Mar 2023 15:46:57 +0000 (11:46 -0400)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Wed, 15 Mar 2023 20:31:40 +0000 (16:31 -0400)
commitf2df50925ee95ba201e2006931f0c0fbedd8e1ca
tree7d7174212e197a98b69bd8350033b1a47bb2255a
parent72d1ee8d6d76bd7a1e123d354a5fb356e3cc7908
powerpc/pmap: Add pmap_sync_icache() for radix pmap

DTrace pid provider writes to user space to set breakpoints.  Failing to
sync the icache can lead to SIGTRAP.  Radix pmap is the only one missing
a pmap_sync_icache() method, so the pid provider would only potentially
crash a process on a POWER9 or later system.

Approved by: re (cperciva)

(cherry picked from commit 6f0b2a235a133a381634ba9a7f5f477c64db9873)
(cherry picked from commit ed2c3bda43fbd0bfad9e45c78a59fff8a62422da)
sys/powerpc/aim/mmu_radix.c