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

(cherry picked from commit ef0a711fd5d0d389205c18c869c78b9a4d639ddb)

Details

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