mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
amd64 pmap: Fix compilation when superpage reservations are disabled
The function pmap_pde_ept_executable() should not be conditionally compiled based on VM_NRESERVLEVEL. It is required indirectly by pmap_enter(..., psind=1) even when reservation-based allocation is disabled at compile time. Reviewed by: alc MFC after: 1 week
This commit is contained in:
parent
0d1ff2b04d
commit
294c52d969
|
@ -6839,7 +6839,6 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot)
|
|||
PMAP_UNLOCK(pmap);
|
||||
}
|
||||
|
||||
#if VM_NRESERVLEVEL > 0
|
||||
static bool
|
||||
pmap_pde_ept_executable(pmap_t pmap, pd_entry_t pde)
|
||||
{
|
||||
|
@ -6849,6 +6848,7 @@ pmap_pde_ept_executable(pmap_t pmap, pd_entry_t pde)
|
|||
return ((pde & EPT_PG_EXECUTE) != 0);
|
||||
}
|
||||
|
||||
#if VM_NRESERVLEVEL > 0
|
||||
/*
|
||||
* Tries to promote the 512, contiguous 4KB page mappings that are within a
|
||||
* single page table page (PTP) to a single 2MB page mapping. For promotion
|
||||
|
|
Loading…
Reference in a new issue