From 6f4640d092ca23aebe21e790e4e0995b989a7bb5 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 22 Mar 2006 21:23:27 +0000 Subject: [PATCH] MFp4: If we're mapping the vector page (this will happen if we didn't relocate it), do not attempt to call pmap_vac_me_harder() on the page. At this point m will be NULL, and we know we won't have any cache issues with this page. --- sys/arm/arm/pmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 7ab6e3f1d288..abf487d04a35 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -3535,7 +3535,8 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot, pmap_tlb_flushD_SE(pmap, va); - pmap_vac_me_harder(m, pmap, va); + if (m) + pmap_vac_me_harder(m, pmap, va); } vm_page_unlock_queues(); }