Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp700/include Expose parts of struct cpu_info if _K...
details: https://anonhg.NetBSD.org/src/rev/e13321ac7044
branches: trunk
changeset: 760100:e13321ac7044
user: he <he%NetBSD.org@localhost>
date: Sun Dec 26 21:05:34 2010 +0000
description:
Expose parts of struct cpu_info if _KMEMUSER is defined, for the benefit
of e.g. vmstat.
diffstat:
sys/arch/hp700/include/cpu.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 8aaed2a5bd8f -r e13321ac7044 sys/arch/hp700/include/cpu.h
--- a/sys/arch/hp700/include/cpu.h Sun Dec 26 18:00:41 2010 +0000
+++ b/sys/arch/hp700/include/cpu.h Sun Dec 26 21:05:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.54 2010/12/24 16:00:13 skrll Exp $ */
+/* $NetBSD: cpu.h,v 1.55 2010/12/26 21:05:34 he Exp $ */
/* $OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $ */
@@ -215,6 +215,10 @@
#define cpu_signotify(l) (setsoftast(l))
#define cpu_need_proftick(l) ((l)->l_pflag |= LP_OWEUPC, setsoftast(l))
+#endif /* _KERNEL */
+
+#if defined(_KERNEL) || defined(_KMEMUSER)
+
#include <sys/cpu_data.h>
/*
@@ -227,6 +231,7 @@
struct cpu_data ci_data; /* MI per-cpu data */
+#ifndef _KMEMUSER
#ifdef MULTIPROCESSOR
struct lwp *ci_curlwp; /* CPU owner */
#endif
@@ -238,8 +243,12 @@
volatile int ci_cpl;
volatile int ci_ipending; /* The pending interrupts. */
u_int ci_intr_depth; /* Nonzero iff running an interrupt. */
+#endif /* !_KMEMUSER */
} __aligned(64);
+#endif /* _KERNEL || _KMEMUSER */
+
+#if defined(_KERNEL)
/*
* definitions of cpu-dependent requirements
Home |
Main Index |
Thread Index |
Old Index