Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/include hppa/intr.h: Expose ipl_cookie_t to _K...
details: https://anonhg.NetBSD.org/src/rev/4a849b32da36
branches: trunk
changeset: 377426:4a849b32da36
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jul 11 11:05:09 2023 +0000
description:
hppa/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).
diffstat:
sys/arch/hppa/include/intr.h | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r ba1e8686c0fb -r 4a849b32da36 sys/arch/hppa/include/intr.h
--- a/sys/arch/hppa/include/intr.h Tue Jul 11 11:03:31 2023 +0000
+++ b/sys/arch/hppa/include/intr.h Tue Jul 11 11:05:09 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.2 2022/02/26 03:02:25 macallan Exp $ */
+/* $NetBSD: intr.h,v 1.3 2023/07/11 11:05:09 riastradh Exp $ */
/* $OpenBSD: intr.h,v 1.26 2009/12/29 13:11:40 jsing Exp $ */
/*-
@@ -40,6 +40,12 @@
#ifndef _LOCORE
+#if defined(_KERNEL) || defined(_KMEMUSER)
+typedef struct {
+ ipl_t _ipl;
+} ipl_cookie_t;
+#endif
+
#ifdef _KERNEL
struct cpu_info;
@@ -157,9 +163,6 @@ void spllower(int);
#define splx(x) spllower(x)
typedef int ipl_t;
-typedef struct {
- ipl_t _ipl;
-} ipl_cookie_t;
static inline ipl_cookie_t
makeiplcookie(ipl_t ipl)
Home |
Main Index |
Thread Index |
Old Index