Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Drop to spl0 after the pmap_activate call. Should ...
details: https://anonhg.NetBSD.org/src/rev/05e6a0badebf
branches: trunk
changeset: 341571:05e6a0badebf
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Nov 12 10:47:30 2015 +0000
description:
Drop to spl0 after the pmap_activate call. Should address
PR port-arm/50420: curcpu()->ci_pmap_cur != pm || pm->pm_pai[0].pai_asid == curcpu()->ci_pmap_asid_cur" failed
Discussed with matt@ and rmind@
diffstat:
sys/kern/kern_lwp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 0bb6e01d7358 -r 05e6a0badebf sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Thu Nov 12 10:31:29 2015 +0000
+++ b/sys/kern/kern_lwp.c Thu Nov 12 10:47:30 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.180 2015/10/02 16:54:15 christos Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.181 2015/11/12 10:47:30 skrll Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -211,7 +211,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.180 2015/10/02 16:54:15 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.181 2015/11/12 10:47:30 skrll Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -992,9 +992,9 @@
prev->l_ctxswtch = 0;
}
KPREEMPT_DISABLE(new_lwp);
- spl0();
if (__predict_true(new_lwp->l_proc->p_vmspace))
pmap_activate(new_lwp);
+ spl0();
/* Note trip through cpu_switchto(). */
pserialize_switchpoint();
Home |
Main Index |
Thread Index |
Old Index