Module Name:    src
Committed By:   riastradh
Date:           Tue Jul 11 11:09:13 UTC 2023

Modified Files:
        src/sys/arch/news68k/include: intr.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/news68k/include/intr.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/news68k/include/intr.h
diff -u src/sys/arch/news68k/include/intr.h:1.27 src/sys/arch/news68k/include/intr.h:1.28
--- src/sys/arch/news68k/include/intr.h:1.27	Thu Apr 19 21:50:07 2018
+++ src/sys/arch/news68k/include/intr.h	Tue Jul 11 11:09:13 2023
@@ -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_ */

Reply via email to