HomeFreeBSD

Increase number of L2 tables required for kernel bootstrap

Description

Increase number of L2 tables required for kernel bootstrap

Memory space reserved for pmap_kernel_l2dtable_kva and
pmap_kernel_l2ptp_kva has not been taken into account in
original code. All the memory reserved from kernel space by
pmap_alloc_specials() function called in pmap_bootstrap()
should be mapped initially by initarm(). To create initial
mapping initarm() function reserves proper number of l2 page
tables. However the number of the l2 page tables does not take
into account memory for: pmap_kernel_l2ptp_kva,
pmap_kernel_l2dtable_kva, crashdumpmap, etc.

Submitted by: Grzegorz Bernacki <gjb@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: meloun-miracle-cz
Differential revision: https://reviews.freebsd.org/D10217

Details

Provenance
zbbAuthored on
Reviewer
mmel
Differential Revision
D10217: Increase number of L2 tables required for kernel bootstrap
Parents
rS317084: Reduce kmem_arena maximum size for Armada38x
Branches
Unknown
Tags
Unknown