Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/include mac68k/intr.h: Expose ipl_cookie_t t...
details: https://anonhg.NetBSD.org/src/rev/8ecfea1ff76e
branches: trunk
changeset: 377443:8ecfea1ff76e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jul 11 17:55:04 2023 +0000
description:
mac68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).
diffstat:
sys/arch/mac68k/include/intr.h | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 9e63c3f466fd -r 8ecfea1ff76e sys/arch/mac68k/include/intr.h
--- a/sys/arch/mac68k/include/intr.h Tue Jul 11 17:54:54 2023 +0000
+++ b/sys/arch/mac68k/include/intr.h Tue Jul 11 17:55:04 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.31 2008/07/17 16:13:33 tsutsui Exp $ */
+/* $NetBSD: intr.h,v 1.32 2023/07/11 17:55:04 riastradh Exp $ */
/*
* Copyright (C) 1997 Scott Reynolds
@@ -32,6 +32,12 @@
#include <machine/psl.h>
+#if defined(_KERNEL) || defined(_KMEMUSER)
+typedef struct {
+ uint16_t _ipl;
+} ipl_cookie_t;
+#endif
+
#ifdef _KERNEL
/* spl0 requires checking for software interrupts */
@@ -66,9 +72,6 @@ extern uint16_t ipl2psl_table[NIPL];
typedef int ipl_t;
-typedef struct {
- uint16_t _ipl;
-} ipl_cookie_t;
static inline ipl_cookie_t
makeiplcookie(ipl_t ipl)
Home |
Main Index |
Thread Index |
Old Index