HomeFreeBSD

riscv: Use PMAP_MAPDEV_EARLY_SIZE in locore and pmap_bootstrap

Description

riscv: Use PMAP_MAPDEV_EARLY_SIZE in locore and pmap_bootstrap

Use PMAP_MAPDEV_EARLY_SIZE instead of assuming that its value is always
L2_SIZE. Add compile-time assertions to check that the size matches the
expectations in locore.

Reviewed by: mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D40110

Details

Provenance
alfredo.mazzinghi_cl.cam.ac.ukAuthored on May 25 2023, 3:33 PM
mhorneCommitted on May 25 2023, 5:06 PM
Reviewer
mhorne
Differential Revision
D40110: riscv: Fix size reserved for the devmap region in pmap_bootstrap.
Parents
rGffa75b573f04: arm64/disassem.c: Add shifted register instruction definitions
Branches
Unknown
Tags
Unknown