Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/b31e16cd5c02
branches:  trunk
changeset: 377427:b31e16cd5c02
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 11:06:04 2023 +0000

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

diffstat:

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

diffs (32 lines):

diff -r 4a849b32da36 -r b31e16cd5c02 sys/arch/luna68k/include/intr.h
--- a/sys/arch/luna68k/include/intr.h   Tue Jul 11 11:05:09 2023 +0000
+++ b/sys/arch/luna68k/include/intr.h   Tue Jul 11 11:06:04 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.15 2014/03/22 16:52:07 tsutsui Exp $ */
+/* $NetBSD: intr.h,v 1.16 2023/07/11 11:06:04 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -32,6 +32,12 @@
 #ifndef _MACHINE_INTR_H
 #define _MACHINE_INTR_H
 
+#if defined(_KERNEL) || defined(_KMEMUSER)
+typedef struct {
+       uint16_t _psl;
+} ipl_cookie_t;
+#endif
+
 #ifdef _KERNEL
 
 /*
@@ -62,9 +68,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