The kernel pmap is statically allocated, so there is really no need to
explicitly initialize its pm_root field to zero. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
56a5487faa
commit
9f585991ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248140
@ -669,7 +669,6 @@ pmap_bootstrap(vm_paddr_t *firstaddr)
|
||||
*/
|
||||
PMAP_LOCK_INIT(kernel_pmap);
|
||||
kernel_pmap->pm_pml4 = (pdp_entry_t *)PHYS_TO_DMAP(KPML4phys);
|
||||
kernel_pmap->pm_root = NULL;
|
||||
CPU_FILL(&kernel_pmap->pm_active); /* don't allow deactivation */
|
||||
TAILQ_INIT(&kernel_pmap->pm_pvchunk);
|
||||
|
||||
|
@ -392,7 +392,6 @@ pmap_bootstrap(vm_paddr_t firstaddr)
|
||||
#ifdef PAE
|
||||
kernel_pmap->pm_pdpt = (pdpt_entry_t *) (KERNBASE + (u_int)IdlePDPT);
|
||||
#endif
|
||||
kernel_pmap->pm_root = NULL;
|
||||
CPU_FILL(&kernel_pmap->pm_active); /* don't allow deactivation */
|
||||
TAILQ_INIT(&kernel_pmap->pm_pvchunk);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user