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
F103976588: D10217.id27507.diff
Sun, Dec 1, 11:11 PM
Unknown Object (File)
Fri, Nov 29, 9:00 PM
Unknown Object (File)
Fri, Nov 29, 5:37 PM
Unknown Object (File)
Sun, Nov 24, 9:47 AM
Unknown Object (File)
Thu, Nov 21, 4:26 PM
Unknown Object (File)
Sun, Nov 17, 6:01 PM
Unknown Object (File)
Oct 18 2024, 7:44 AM
Unknown Object (File)
Oct 2 2024, 4:02 AM

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.