summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/intel/pmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index bc3acfc..c633fd9 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -2410,6 +2410,8 @@ pmap_unmap_page_zero ()
int *pte;
pte = (int *) pmap_pte (kernel_pmap, 0);
+ if (!pte)
+ return;
assert (pte);
*pte = 0;
INVALIDATE_TLB(kernel_pmap, 0, PAGE_SIZE);