]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: Simplify fcmpset failure in pmap_promote_l2()
authorAlan Cox <alc@FreeBSD.org>
Wed, 7 Jul 2021 18:16:03 +0000 (13:16 -0500)
committerAlan Cox <alc@FreeBSD.org>
Wed, 7 Jul 2021 18:34:11 +0000 (13:34 -0500)
commit0add3c9945c85c7f766f9225866e99e2a805819b
tree9f8d14ff2fdd452208370d948a6f667ec6bad63d
parent48b4fe0503282f03d25e23f44109c5cb6d450f7c
arm64: Simplify fcmpset failure in pmap_promote_l2()

When the initial fcmpset in pmap_promote_l2() fails, there is no need
to repeat the check for the physical address being 2MB aligned or for
the accessed bit being set.  While the pmap is locked the hardware can
only transition the accessed bit from 0 to 1, and we have already
determined that it is 1 when the fcmpset fails.

MFC after: 1 week
sys/arm64/arm64/pmap.c