Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/common/pmap/tlb Make sure to include "opt_multiprocessor...
details: https://anonhg.NetBSD.org/src/rev/45fbb62eb50a
branches: trunk
changeset: 766464:45fbb62eb50a
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 23 08:11:56 2011 +0000
description:
Make sure to include "opt_multiprocessor.h".
Add missing ). (spotted by uebayashi@)
diffstat:
sys/common/pmap/tlb/pmap_segtab.c | 6 ++++--
sys/common/pmap/tlb/pmap_synci.c | 4 +++-
sys/common/pmap/tlb/pmap_tlb.c | 8 +++++---
3 files changed, 12 insertions(+), 6 deletions(-)
diffs (80 lines):
diff -r 8e4dcc2f9680 -r 45fbb62eb50a sys/common/pmap/tlb/pmap_segtab.c
--- a/sys/common/pmap/tlb/pmap_segtab.c Thu Jun 23 08:10:35 2011 +0000
+++ b/sys/common/pmap/tlb/pmap_segtab.c Thu Jun 23 08:11:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_segtab.c,v 1.3 2011/06/21 06:43:38 matt Exp $ */
+/* $NetBSD: pmap_segtab.c,v 1.4 2011/06/23 08:11:56 matt Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_segtab.c,v 1.3 2011/06/21 06:43:38 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_segtab.c,v 1.4 2011/06/23 08:11:56 matt Exp $");
/*
* Manages physical address maps.
@@ -97,6 +97,8 @@
#define __PMAP_PRIVATE
+#include "opt_multiprocessor.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
diff -r 8e4dcc2f9680 -r 45fbb62eb50a sys/common/pmap/tlb/pmap_synci.c
--- a/sys/common/pmap/tlb/pmap_synci.c Thu Jun 23 08:10:35 2011 +0000
+++ b/sys/common/pmap/tlb/pmap_synci.c Thu Jun 23 08:11:56 2011 +0000
@@ -29,10 +29,12 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_synci.c,v 1.1 2011/06/23 07:43:19 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_synci.c,v 1.2 2011/06/23 08:11:56 matt Exp $");
#define __PMAP_PRIVATE
+#include "opt_multiprocessor.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mutex.h>
diff -r 8e4dcc2f9680 -r 45fbb62eb50a sys/common/pmap/tlb/pmap_tlb.c
--- a/sys/common/pmap/tlb/pmap_tlb.c Thu Jun 23 08:10:35 2011 +0000
+++ b/sys/common/pmap/tlb/pmap_tlb.c Thu Jun 23 08:11:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_tlb.c,v 1.8 2011/06/23 07:58:19 matt Exp $ */
+/* $NetBSD: pmap_tlb.c,v 1.9 2011/06/23 08:11:56 matt Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.8 2011/06/23 07:58:19 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.9 2011/06/23 08:11:56 matt Exp $");
/*
* Manages address spaces in a TLB.
@@ -124,6 +124,8 @@
#define __PMAP_PRIVATE
+#include "opt_multiprocessor.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
@@ -415,7 +417,7 @@
KASSERT(pm != pmap_kernel());
KASSERT(pai->pai_asid > KERNEL_PID);
#if defined(MULTIPROCESSOR)
- if (!CPUSET_EMPTY_P(CPUSET_SUBSET(pm->pm_onproc, ti->ti_cpu_mask)) {
+ if (!CPUSET_EMPTY_P(CPUSET_SUBSET(pm->pm_onproc, ti->ti_cpu_mask))) {
if (!TLBINFO_ASID_INUSE_P(ti, pai->pai_asid)) {
TLBINFO_ASID_MARK_USED(ti, pai->pai_asid);
ti->ti_asids_free--;
Home |
Main Index |
Thread Index |
Old Index