Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Limit sys/pcu.h inclusion within _KERNEL scope, plus...
details: https://anonhg.NetBSD.org/src/rev/fd3093deb43b
branches: trunk
changeset: 764725:fd3093deb43b
user: rmind <rmind%NetBSD.org@localhost>
date: Mon May 02 02:28:57 2011 +0000
description:
Limit sys/pcu.h inclusion within _KERNEL scope, plus _KMEMUSER.
diffstat:
sys/sys/lwp.h | 6 ++++--
sys/sys/pcu.h | 4 ++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 2191d0d74c97 -r fd3093deb43b sys/sys/lwp.h
--- a/sys/sys/lwp.h Mon May 02 02:01:32 2011 +0000
+++ b/sys/sys/lwp.h Mon May 02 02:28:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lwp.h,v 1.150 2011/03/08 12:39:29 pooka Exp $ */
+/* $NetBSD: lwp.h,v 1.151 2011/05/02 02:28:57 rmind Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009, 2010
@@ -44,7 +44,6 @@
#include <sys/specificdata.h>
#include <sys/syncobj.h>
#include <sys/resource.h>
-#include <sys/pcu.h>
#if defined(_KERNEL)
#include <machine/cpu.h> /* curcpu() and cpu_info */
@@ -68,6 +67,9 @@
* of cache hits) and by size (to reduce dead space in the structure).
*/
#if defined(_KERNEL) || defined(_KMEMUSER)
+
+#include <sys/pcu.h>
+
struct lockdebug;
struct sadata_vp;
struct sysent;
diff -r 2191d0d74c97 -r fd3093deb43b sys/sys/pcu.h
--- a/sys/sys/pcu.h Mon May 02 02:01:32 2011 +0000
+++ b/sys/sys/pcu.h Mon May 02 02:28:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcu.h,v 1.5 2011/05/02 00:29:53 rmind Exp $ */
+/* $NetBSD: pcu.h,v 1.6 2011/05/02 02:28:57 rmind Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#ifndef _SYS_PCU_H_
#define _SYS_PCU_H_
-#if !defined(_KERNEL)
+#if !defined(_KERNEL) && !defined(_KMEMUSER)
#error "not supposed to be exposed to userland"
#endif
Home |
Main Index |
Thread Index |
Old Index