aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorYufeng Zhou <yz70@rice.edu>2023-07-12 07:52:02 +0000
committerAlan Cox <alc@FreeBSD.org>2023-07-12 17:07:42 +0000
commit294c52d969dfdaf1d9b3f4a1de76b702ee724afc (patch)
tree7c69b2b1c1f070ebee269d854f3df0e2e1782ece /sys/amd64
parent0d1ff2b04d27c21bf7f66a0b1aaade817ed271e5 (diff)
downloadsrc-294c52d969dfdaf1d9b3f4a1de76b702ee724afc.tar.gz
src-294c52d969dfdaf1d9b3f4a1de76b702ee724afc.zip
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
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 3215a7f8d559..896078f3c456 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -6839,7 +6839,6 @@ retry:
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