Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 provide and use 'ci' in pmap_remove_all_c...
details: https://anonhg.NetBSD.org/src/rev/12c31ec23f3b
branches: trunk
changeset: 816965:12c31ec23f3b
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Aug 04 08:46:06 2016 +0000
description:
provide and use 'ci' in pmap_remove_all_complete.
diffstat:
sys/arch/arm/arm32/pmap.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 312c62c2d08c -r 12c31ec23f3b sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Thu Aug 04 07:22:41 2016 +0000
+++ b/sys/arch/arm/arm32/pmap.c Thu Aug 04 08:46:06 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.339 2016/08/03 15:59:58 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.340 2016/08/04 08:46:06 skrll Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
#include <arm/locore.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.339 2016/08/03 15:59:58 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.340 2016/08/04 08:46:06 skrll Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@@ -5022,10 +5022,11 @@
#else
struct pmap_tlb_info * const ti = &pmap_tlb0_info;
#endif
+ struct cpu_info * const ci = curcpu();
TLBINFO_LOCK(ti);
struct pmap_asid_info * const pai = PMAP_PAI(pm, ti);
if (PMAP_PAI_ASIDVALID_P(pai, ti)) {
- if (kcpuset_isset(pm->pm_onproc, cpu_index(curcpu()))) {
+ if (kcpuset_isset(pm->pm_onproc, cpu_index(ci))) {
#if PMAP_TLB_MAX == 1
KASSERT(cpu_tlb_info(ci) == ti);
Home |
Main Index |
Thread Index |
Old Index