Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/include x68k/intr.h: Put functions under _KERN...



details:   https://anonhg.NetBSD.org/src/rev/d259a2fee290
branches:  trunk
changeset: 377434:d259a2fee290
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 11:50:39 2023 +0000

description:
x68k/intr.h: Put functions under _KERNEL so crash(8) can use this.

diffstat:

 sys/arch/x68k/include/intr.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 402e763d2a0d -r d259a2fee290 sys/arch/x68k/include/intr.h
--- a/sys/arch/x68k/include/intr.h      Tue Jul 11 11:48:45 2023 +0000
+++ b/sys/arch/x68k/include/intr.h      Tue Jul 11 11:50:39 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.21 2014/03/22 21:49:18 tsutsui Exp $        */
+/*     $NetBSD: intr.h,v 1.22 2023/07/11 11:50:39 riastradh Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -64,6 +64,8 @@ typedef struct {
        uint16_t _psl;
 } ipl_cookie_t;
 
+#ifdef _KERNEL
+
 static inline ipl_cookie_t
 makeiplcookie(ipl_t ipl)
 {
@@ -84,4 +86,7 @@ splx(int sr)
 
        __asm volatile("movew %0,%%sr" : : "di" (sr));
 }
+
+#endif /* _KERNEL */
+
 #endif /* !_X68K_INTR_H_ */



Home | Main Index | Thread Index | Old Index