From e964038ba70a790c473ebac6c88f520d855b9652 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 27 Jun 2018 23:36:56 +0200 Subject: Fix pmap name * i386/intel/pmap.c (pmap_map_bd): Lock kernel_pmap, not just the inexistent pmap. --- i386/intel/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index ffbd2ae4..ca091a6d 100644 --- a/i386/intel/pmap.c +++ b/i386/intel/pmap.c @@ -543,7 +543,7 @@ vm_offset_t pmap_map_bd( if (prot & VM_PROT_WRITE) template |= INTEL_PTE_WRITE; - PMAP_READ_LOCK(pmap, spl); + PMAP_READ_LOCK(kernel_pmap, spl); while (start < end) { pte = pmap_pte(kernel_pmap, virt); if (pte == PT_ENTRY_NULL) @@ -572,7 +572,7 @@ vm_offset_t pmap_map_bd( if (n != i) panic("couldn't pmap_map_bd\n"); #endif /* MACH_PV_PAGETABLES */ - PMAP_READ_UNLOCK(pmap, spl); + PMAP_READ_UNLOCK(kernel_pmap, spl); return(virt); } -- cgit v1.2.3