Module Name:    src
Committed By:   riastradh
Date:           Tue Jul 11 17:54:55 UTC 2023

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

Log Message:
hp300/intr.h: Put most of this under #ifdef _KERNEL.

Only ipl_cookie_t really needs to be exposed now, for crash(8).


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/hp300/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/hp300/include/intr.h
diff -u src/sys/arch/hp300/include/intr.h:1.35 src/sys/arch/hp300/include/intr.h:1.36
--- src/sys/arch/hp300/include/intr.h:1.35	Tue Jul 11 10:42:26 2023
+++ src/sys/arch/hp300/include/intr.h	Tue Jul 11 17:54:54 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.h,v 1.35 2023/07/11 10:42:26 riastradh Exp $	*/
+/*	$NetBSD: intr.h,v 1.36 2023/07/11 17:54:54 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1999 The NetBSD Foundation, Inc.
@@ -82,6 +82,8 @@ typedef struct {
 	uint16_t _psl;
 } ipl_cookie_t;
 
+#ifdef _KERNEL
+
 static inline ipl_cookie_t
 makeiplcookie(ipl_t ipl)
 {
@@ -137,4 +139,6 @@ void	*intr_establish(int (*)(void *), vo
 void	intr_disestablish(void *);
 void	intr_dispatch(int);
 
+#endif	/* _KERNEL */
+
 #endif /* _HP300_INTR_H_ */

Reply via email to