Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/ede7e1310fdd
branches:  trunk
changeset: 377422:ede7e1310fdd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 10:58:03 2023 +0000

description:
atari/intr.h: Expose ipl_cookie_t with _KMEMUSER for crash(8).

diffstat:

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

diffs (32 lines):

diff -r e179f2fff6ce -r ede7e1310fdd sys/arch/atari/include/intr.h
--- a/sys/arch/atari/include/intr.h     Tue Jul 11 10:55:02 2023 +0000
+++ b/sys/arch/atari/include/intr.h     Tue Jul 11 10:58:03 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.22 2021/04/02 12:11:41 rin Exp $    */
+/*     $NetBSD: intr.h,v 1.23 2023/07/11 10:58:03 riastradh Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 2007 The NetBSD Foundation, Inc.
@@ -48,6 +48,12 @@
 #define        IST_EDGE        2       /* edge-triggered               */
 #define        IST_LEVEL       3       /* level-triggered              */
 
+#if defined(_KERNEL) || defined(_KMEMUSER)
+typedef struct {
+       uint16_t _psl;
+} ipl_cookie_t;
+#endif
+
 /*
  * spl functions; all but spl0 are done in-line
  */
@@ -71,9 +77,6 @@ extern const uint16_t ipl2psl_table[NIPL
 extern int idepth;
 
 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