]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix calculating l0index in _pmap_alloc_l3 on arm64
authorAndrew Turner <andrew@FreeBSD.org>
Thu, 10 Mar 2022 14:40:38 +0000 (14:40 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Tue, 15 Mar 2022 09:51:41 +0000 (09:51 +0000)
commit5e2f304cb4c7c2a8fdd8760ac53ed87d2df055f5
tree30918a0d01e71502ca2640ed35e8e4e6b2e7a6d0
parent0977ebb07152199f27174177a3640ee7264ca592
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
sys/arm64/arm64/pmap.c