Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/b65fff4604f6
branches:  trunk
changeset: 377432:b65fff4604f6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 11:46:38 2023 +0000

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

diffstat:

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

diffs (32 lines):

diff -r fc688ed7133d -r b65fff4604f6 sys/arch/sun68k/include/intr.h
--- a/sys/arch/sun68k/include/intr.h    Tue Jul 11 11:37:29 2023 +0000
+++ b/sys/arch/sun68k/include/intr.h    Tue Jul 11 11:46:38 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.20 2008/06/22 17:34:25 tsutsui Exp $        */
+/*     $NetBSD: intr.h,v 1.21 2023/07/11 11:46:38 riastradh Exp $      */
 
 /*
  * Copyright (c) 2001 Matt Fredette.
@@ -55,6 +55,12 @@
 #define _IPL_SOFT_LEVEL_MIN    1
 #define _IPL_SOFT_LEVEL_MAX    3
 
+#if defined(_KERNEL) || defined(_KMEMUSER)
+typedef struct {
+       uint16_t _psl;
+} ipl_cookie_t;
+#endif
+
 #ifdef _KERNEL
 
 extern int idepth;
@@ -69,9 +75,6 @@ cpu_intr_p(void)
 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