Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/x86 add a missing splvm()/splx() to protect the...
details: https://anonhg.NetBSD.org/src/rev/1360ba9003c7
branches: trunk
changeset: 772884:1360ba9003c7
user: bouyer <bouyer%NetBSD.org@localhost>
date: Thu Jan 19 22:04:05 2012 +0000
description:
add a missing splvm()/splx() to protect the xpq queue.
diffstat:
sys/arch/xen/x86/xen_pmap.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r c4d2cb0961bf -r 1360ba9003c7 sys/arch/xen/x86/xen_pmap.c
--- a/sys/arch/xen/x86/xen_pmap.c Thu Jan 19 22:00:56 2012 +0000
+++ b/sys/arch/xen/x86/xen_pmap.c Thu Jan 19 22:04:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_pmap.c,v 1.13 2012/01/09 12:58:49 cherry Exp $ */
+/* $NetBSD: xen_pmap.c,v 1.14 2012/01/19 22:04:05 bouyer Exp $ */
/*
* Copyright (c) 2007 Manuel Bouyer.
@@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.13 2012/01/09 12:58:49 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.14 2012/01/19 22:04:05 bouyer Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -619,6 +619,7 @@
if (__predict_false(xpq_cpu != &x86_curcpu)) { /* Too early to xcall */
CPU_INFO_ITERATOR cii;
struct cpu_info *ci;
+ int s = splvm();
for (CPU_INFO_FOREACH(cii, ci)) {
if (ci == NULL) {
continue;
@@ -629,6 +630,7 @@
}
}
pmap_pte_flush();
+ splx(s);
return;
}
Home |
Main Index |
Thread Index |
Old Index