Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/include vax/intr.h: Expose ipl_cookie_t to _KME...



details:   https://anonhg.NetBSD.org/src/rev/402e763d2a0d
branches:  trunk
changeset: 377433:402e763d2a0d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 11:48:45 2023 +0000

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

diffstat:

 sys/arch/vax/include/intr.h |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r b65fff4604f6 -r 402e763d2a0d sys/arch/vax/include/intr.h
--- a/sys/arch/vax/include/intr.h       Tue Jul 11 11:46:38 2023 +0000
+++ b/sys/arch/vax/include/intr.h       Tue Jul 11 11:48:45 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.30 2021/11/02 11:26:05 ryo Exp $    */
+/*     $NetBSD: intr.h,v 1.31 2023/07/11 11:48:45 riastradh Exp $      */
 
 /*
  * Copyright (c) 1998 Matt Thomas.
@@ -65,6 +65,11 @@
 #define IST_EDGE       2       /* edge-triggered */
 #define IST_LEVEL      3       /* level-triggered */
 
+#if defined(_KERNEL) || defined(_KMEMUSER)
+typedef struct {
+       uint8_t _ipl;
+} ipl_cookie_t;
+#endif
 
 #ifdef _KERNEL
 typedef int ipl_t;
@@ -89,10 +94,6 @@ splx(ipl_t new_ipl)
        return old_ipl;
 }
 
-typedef struct {
-       uint8_t _ipl;
-} ipl_cookie_t;
-
 static inline __always_inline ipl_cookie_t
 makeiplcookie(ipl_t ipl)
 {



Home | Main Index | Thread Index | Old Index