HomeFreeBSD

Fix arm64 TLB invalidation with non-4k pages

Description

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

Details

Provenance
andrewAuthored on Mar 10 2022, 2:39 PM
Reviewer
alc
Differential Revision
D34516: Fix arm64 TLB invalidation with non-4k pages
Parents
rG51f5cafcdc47: Remove a redundant L1_BLOCK == L2_BLOCK check
Branches
Unknown
Tags
Unknown