Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Remove apte related shootdowns.
details: https://anonhg.NetBSD.org/src/rev/d4dcf3f370a1
branches: trunk
changeset: 773230:d4dcf3f370a1
user: cherry <cherry%NetBSD.org@localhost>
date: Sun Jan 29 11:37:08 2012 +0000
description:
Remove apte related shootdowns.
diffstat:
sys/arch/x86/x86/pmap.c | 20 +++-----------------
1 files changed, 3 insertions(+), 17 deletions(-)
diffs (49 lines):
diff -r f1830db11238 -r d4dcf3f370a1 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Sun Jan 29 11:32:23 2012 +0000
+++ b/sys/arch/x86/x86/pmap.c Sun Jan 29 11:37:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.157 2012/01/28 08:57:09 cherry Exp $ */
+/* $NetBSD: pmap.c,v 1.158 2012/01/29 11:37:08 cherry Exp $ */
/*-
* Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.157 2012/01/28 08:57:09 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.158 2012/01/29 11:37:08 cherry Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -1869,12 +1869,6 @@
int level;
vaddr_t invaladdr;
pd_entry_t opde;
-#ifdef XEN
- struct pmap *curpmap = vm_map_pmap(&curlwp->l_proc->p_vmspace->vm_map);
-#ifdef MULTIPROCESSOR
- vaddr_t invaladdr2;
-#endif
-#endif
KASSERT(pmap != pmap_kernel());
KASSERT(mutex_owned(pmap->pm_lock));
@@ -1901,16 +1895,8 @@
# endif /*__x86_64__ */
invaladdr = level == 1 ? (vaddr_t)ptes :
(vaddr_t)pdes[level - 2];
- pmap_tlb_shootdown(curpmap, invaladdr + index * PAGE_SIZE,
+ pmap_tlb_shootdown(pmap, invaladdr + index * PAGE_SIZE,
opde, TLBSHOOT_FREE_PTP1);
-# if defined(MULTIPROCESSOR)
- invaladdr2 = level == 1 ? (vaddr_t)PTE_BASE :
- (vaddr_t)normal_pdes[level - 2];
- if (pmap != curpmap || invaladdr != invaladdr2) {
- pmap_tlb_shootdown(pmap, invaladdr2 + index * PAGE_SIZE,
- opde, TLBSHOOT_FREE_PTP2);
- }
-# endif /* MULTIPROCESSOR */
#else /* XEN */
invaladdr = level == 1 ? (vaddr_t)ptes :
(vaddr_t)pdes[level - 2];
Home |
Main Index |
Thread Index |
Old Index