]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix arm64 TLB invalidation with non-4k pages
authorAndrew Turner <andrew@FreeBSD.org>
Thu, 10 Mar 2022 14:39:03 +0000 (14:39 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Tue, 15 Mar 2022 17:25:28 +0000 (17:25 +0000)
commit813738fabaaea43503724b8371faf5bab73a3047
tree316ce57920f02f9fad14ae36df473c803b8c2b4f
parent51f5cafcdc47357596cac8c6166331beb264df39
Fix arm64 TLB invalidation with non-4k pages

When using 16k or 64k pages atop will shift the address by more than
the needed amount for a tlbi instruction. Replace this with a new macro
to shift the address by 12 and use PAGE_SIZE in the for loop to let the
code work with any page size.

Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34516
sys/arm64/arm64/pmap.c