HomeFreeBSD

Fix calculating l0index in _pmap_alloc_l3 on arm64

Description

Fix calculating l0index in _pmap_alloc_l3 on arm64

When moving from the l1 index to l0 index we need to use the l1 shift
value not the l0 shift value. With 4k pages they are identical, however
with 16k pages we only have 2 l0 entries so the shift value is incorrect.

Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34517

(cherry picked from commit 5e2f304cb4c7c2a8fdd8760ac53ed87d2df055f5)

Details

Provenance
andrewAuthored on Mar 10 2022, 2:40 PM
Reviewer
alc
Differential Revision
D34517: Fix calculating l0index in _pmap_alloc_l3 on arm64
Parents
rG9705371ada9b: Correct the location of the arm64 PMCR register
Branches
Unknown
Tags
Unknown