Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/include amiga/intr.h: Don't define spl*() fun...



details:   https://anonhg.NetBSD.org/src/rev/92bd18b25ca2
branches:  trunk
changeset: 377419:92bd18b25ca2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jul 11 10:44:55 2023 +0000

description:
amiga/intr.h: Don't define spl*() functions if !_KERNEL.

This is used by crash(8) now, and what's important is ipl_cookie_t.

diffstat:

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

diffs (25 lines):

diff -r e775c294e612 -r 92bd18b25ca2 sys/arch/amiga/include/intr.h
--- a/sys/arch/amiga/include/intr.h     Tue Jul 11 10:42:36 2023 +0000
+++ b/sys/arch/amiga/include/intr.h     Tue Jul 11 10:44:55 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.22 2020/08/10 10:59:33 rin Exp $    */
+/*     $NetBSD: intr.h,v 1.23 2023/07/11 10:44:55 riastradh Exp $      */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -58,6 +58,8 @@ typedef struct {
        uint16_t _ipl;
 } ipl_cookie_t;
 
+#ifdef _KERNEL
+
 static inline ipl_cookie_t
 makeiplcookie(ipl_t ipl)
 {
@@ -105,4 +107,6 @@ extern int _spllkm7(void);
 
 #define splx(s)                _spl(s)
 
+#endif /* _KERNEL */
+
 #endif /* !_AMIGA_INTR_H_ */



Home | Main Index | Thread Index | Old Index