Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/next68k/include next68k/intr.h: Expose ipl_cookie_t...



details:   https://anonhg.NetBSD.org/src/rev/978c582fd46b
branches:  trunk
changeset: 377430:978c582fd46b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 11:13:32 2023 +0000

description:
next68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

diffstat:

 sys/arch/next68k/include/intr.h |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r ea9aa20e5d91 -r 978c582fd46b sys/arch/next68k/include/intr.h
--- a/sys/arch/next68k/include/intr.h   Tue Jul 11 11:09:13 2023 +0000
+++ b/sys/arch/next68k/include/intr.h   Tue Jul 11 11:13:32 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.22 2018/04/19 21:50:07 christos Exp $       */
+/*     $NetBSD: intr.h,v 1.23 2023/07/11 11:13:32 riastradh Exp $      */
 
 /*
  * Copyright (C) 1997 Scott Reynolds
@@ -35,6 +35,12 @@
 
 /* Probably want to dealwith IPL's here @@@ */
 
+#if defined(_KERNEL) || defined(_KMEMUSER)
+typedef struct {
+       uint16_t _psl;
+} ipl_cookie_t;
+#endif
+
 #ifdef _KERNEL
 
 /* spl0 requires checking for software interrupts */
@@ -67,9 +73,6 @@
 extern const uint16_t ipl2psl_table[NIPL];
 
 typedef int ipl_t;
-typedef struct {
-       uint16_t _psl;
-} ipl_cookie_t;
 
 static __inline ipl_cookie_t
 makeiplcookie(ipl_t ipl)



Home | Main Index | Thread Index | Old Index