Module Name: src Committed By: riastradh Date: Tue Jul 11 11:05:09 UTC 2023
Modified Files: src/sys/arch/hppa/include: intr.h Log Message: hppa/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8). To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/hppa/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/hppa/include/intr.h diff -u src/sys/arch/hppa/include/intr.h:1.2 src/sys/arch/hppa/include/intr.h:1.3 --- src/sys/arch/hppa/include/intr.h:1.2 Sat Feb 26 03:02:25 2022 +++ src/sys/arch/hppa/include/intr.h Tue Jul 11 11:05:09 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: intr.h,v 1.2 2022/02/26 03:02:25 macallan Exp $ */ +/* $NetBSD: intr.h,v 1.3 2023/07/11 11:05:09 riastradh Exp $ */ /* $OpenBSD: intr.h,v 1.26 2009/12/29 13:11:40 jsing Exp $ */ /*- @@ -40,6 +40,12 @@ #ifndef _LOCORE +#if defined(_KERNEL) || defined(_KMEMUSER) +typedef struct { + ipl_t _ipl; +} ipl_cookie_t; +#endif + #ifdef _KERNEL struct cpu_info; @@ -157,9 +163,6 @@ void spllower(int); #define splx(x) spllower(x) typedef int ipl_t; -typedef struct { - ipl_t _ipl; -} ipl_cookie_t; static inline ipl_cookie_t makeiplcookie(ipl_t ipl)