Module Name: src
Committed By: mrg
Date: Sun Dec 20 03:48:30 UTC 2009
Modified Files:
src/sys/arch/sparc/sparc: pmap.c
Log Message:
fix the previous to compile !MULTIPROCESSOR.
To generate a diff of this commit:
cvs rdiff -u -r1.338 -r1.339 src/sys/arch/sparc/sparc/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/sparc/pmap.c
diff -u src/sys/arch/sparc/sparc/pmap.c:1.338 src/sys/arch/sparc/sparc/pmap.c:1.339
--- src/sys/arch/sparc/sparc/pmap.c:1.338 Sun Dec 20 03:41:49 2009
+++ src/sys/arch/sparc/sparc/pmap.c Sun Dec 20 03:48:30 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.338 2009/12/20 03:41:49 mrg Exp $ */
+/* $NetBSD: pmap.c,v 1.339 2009/12/20 03:48:30 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.338 2009/12/20 03:41:49 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.339 2009/12/20 03:48:30 mrg Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -4306,9 +4306,11 @@
{
int *upt, *kpt;
+#if defined(MULTIPROCESSOR)
/* Did this cpu attach? */
if (pmap_kernel()->pm_reg_ptps[n] == 0)
continue;
+#endif
upt = pool_get(&L1_pool, flags);
pm->pm_reg_ptps[n] = upt;
@@ -4362,9 +4364,11 @@
{
int *pt;
+#if defined(MULTIPROCESSOR)
/* Did this cpu attach? */
if (pmap_kernel()->pm_reg_ptps[n] == 0)
continue;
+#endif
pt = pm->pm_reg_ptps[n];
pm->pm_reg_ptps[n] = NULL;