]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: Flush the spintable release address
authorAndrew Turner <andrew@FreeBSD.org>
Fri, 3 May 2024 16:17:25 +0000 (17:17 +0100)
committerAndrew Turner <andrew@FreeBSD.org>
Fri, 10 May 2024 09:29:24 +0000 (09:29 +0000)
commit797f1c7c3dea51f88fa4c365e75c354a93827ca0
treef73941934b89c02eb8740eb623baa00398e746e8
parentc78ebc69c2aa5454b4dc8fd7451b3b0d031205b8
arm64: Flush the spintable release address

Ensure the spintable release address is written back from the cache
to memory. The other CPUs reading this may not be reading it with the
cache enabled so ensure it is written to the point of coherency
before issuing the wakeup sev.

As cpu_dcache_wbinv_range includes the needed barrier remove it from
the inline asm before the sev instruction.

Reviewed by: jhibbits, kevans
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45083
sys/arm64/arm64/mp_machdep.c