Page MenuHomeFreeBSD

Increase number of L2 tables required for kernel bootstrap
ClosedPublic

Authored by mw_semihalf.com on Mar 31 2017, 2:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 29 2024, 8:35 AM
Unknown Object (File)
Jan 24 2024, 4:25 AM
Unknown Object (File)
Jan 16 2024, 7:03 PM
Unknown Object (File)
Dec 27 2023, 12:15 AM
Unknown Object (File)
Dec 20 2023, 5:04 PM
Unknown Object (File)
Dec 20 2023, 4:20 AM
Unknown Object (File)
Dec 9 2023, 2:29 PM
Unknown Object (File)
Sep 19 2023, 1:18 PM

Details

Summary

Memory space reserved for pmap_kernel_l2dtable_kva and
pmap_kernel_l2ptp_kva has not been taken into account in
original code.

Submitted by: Grzegorz Bernacki <gjb@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by:
Differential revision:

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Can you be, please, little more verbose? I'm unable to detect where exactly the problem is.

Here's an explanation from gber, who is the commit author:
If my understanding of code responsible for initial mapping is correct, then 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.

Thanks for clarification, I see it now.

This revision is now accepted and ready to land.Apr 16 2017, 1:24 PM
This revision was automatically updated to reflect the committed changes.