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 Don't forget to flush the xpq queue, otherw...



details:   https://anonhg.NetBSD.org/src/rev/4a5adb358ff0
branches:  trunk
changeset: 822542:4a5adb358ff0
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Mar 24 10:58:06 2017 +0000

description:
Don't forget to flush the xpq queue, otherwise shit may happen.

diffstat:

 sys/arch/x86/x86/pmap.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r d43fd6f716e9 -r 4a5adb358ff0 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Fri Mar 24 10:39:10 2017 +0000
+++ b/sys/arch/x86/x86/pmap.c   Fri Mar 24 10:58:06 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.244 2017/03/23 18:08:06 maxv Exp $  */
+/*     $NetBSD: pmap.c,v 1.245 2017/03/24 10:58:06 maxv Exp $  */
 
 /*-
  * Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.244 2017/03/23 18:08:06 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.245 2017/03/24 10:58:06 maxv Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -1020,6 +1020,7 @@
        npte = pmap_pa2pte(pa);
        npte |= protection_codes[prot] | PG_V;
        pmap_pte_set(pte, npte);
+       pmap_pte_flush();
 }
 
 /*
@@ -1058,6 +1059,8 @@
                pte = (va < VM_MIN_KERNEL_ADDRESS) ? vtopte(va) : kvtopte(va);
                pmap_pte_set(pte, 0);
        }
+
+       pmap_pte_flush();
 }
 
 __strict_weak_alias(pmap_kenter_ma, pmap_kenter_pa);



Home | Main Index | Thread Index | Old Index