HomeFreeBSD

riscv: fix a bug in calculating the pindex for L1 page

Description

riscv: fix a bug in calculating the pindex for L1 page

pmap_l1_pindex(va) expands to: ((va >> L1_SHIFT) + NUL2E)

Reviewed by: mhorne
MFC after: 1 week
Fixes: a4667e09e652 ("Convert vm_page_alloc() callers to...")
Pull Request: https://github.com/freebsd/freebsd-src/pull/1360

Details

Provenance
Wuyang Chung <wy-chung@outlook.com>Authored on Aug 4 2024, 2:04 PM
mhorneCommitted on Aug 29 2024, 3:20 PM
Parents
rG05cf677bb8d8: riscv: remove a redundant MPASS test in _pmap_unwire_ptp()
Branches
Unknown
Tags
Unknown