Module Name: src Committed By: riastradh Date: Tue Jul 11 10:44:55 UTC 2023
Modified Files: src/sys/arch/amiga/include: intr.h Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/amiga/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/amiga/include/intr.h diff -u src/sys/arch/amiga/include/intr.h:1.22 src/sys/arch/amiga/include/intr.h:1.23 --- src/sys/arch/amiga/include/intr.h:1.22 Mon Aug 10 10:59:33 2020 +++ src/sys/arch/amiga/include/intr.h Tue Jul 11 10:44:55 2023 @@ -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_ */