Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/news68k/include news68k/intr.h: Fix includes. Put ...



details:   https://anonhg.NetBSD.org/src/rev/ea9aa20e5d91
branches:  trunk
changeset: 377429:ea9aa20e5d91
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 11:09:13 2023 +0000

description:
news68k/intr.h: Fix includes.  Put some definitions under _KERNEL.

diffstat:

 sys/arch/news68k/include/intr.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 812637ab9f68 -r ea9aa20e5d91 sys/arch/news68k/include/intr.h
--- a/sys/arch/news68k/include/intr.h   Tue Jul 11 11:07:54 2023 +0000
+++ b/sys/arch/news68k/include/intr.h   Tue Jul 11 11:09:13 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.27 2018/04/19 21:50:07 christos Exp $       */
+/*     $NetBSD: intr.h,v 1.28 2023/07/11 11:09:13 riastradh Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -32,9 +32,14 @@
 #ifndef _NEWS68K_INTR_H_
 #define        _NEWS68K_INTR_H_
 
+#include <sys/types.h>
+
 #include <sys/evcnt.h>
 #include <sys/queue.h>
+#include <sys/stdbool.h>
+
 #include <machine/psl.h>
+
 #include <m68k/asm_single.h>
 
 #define        IPL_NONE        0
@@ -63,6 +68,8 @@ typedef struct {
        uint16_t _psl;
 } ipl_cookie_t;
 
+#ifdef _KERNEL
+
 static __inline ipl_cookie_t
 makeiplcookie(ipl_t ipl)
 {
@@ -98,4 +105,6 @@ splx(int sr)
 #define        splhigh()       spl7()
 #define        splsched()      spl7()
 
+#endif
+
 #endif /* _NEWS68K_INTR_H_ */



Home | Main Index | Thread Index | Old Index