Module Name: src Committed By: riastradh Date: Tue Jul 11 10:47:24 UTC 2023
Modified Files: src/sys/arch/cesfic/include: intr.h Log Message: cesfic/intr.h: Expose ipl_cookie_t to userland for crash(8). To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/cesfic/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/cesfic/include/intr.h diff -u src/sys/arch/cesfic/include/intr.h:1.13 src/sys/arch/cesfic/include/intr.h:1.14 --- src/sys/arch/cesfic/include/intr.h:1.13 Thu Dec 22 15:06:17 2011 +++ src/sys/arch/cesfic/include/intr.h Tue Jul 11 10:47:24 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: intr.h,v 1.13 2011/12/22 15:06:17 tsutsui Exp $ */ +/* $NetBSD: intr.h,v 1.14 2023/07/11 10:47:24 riastradh Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -46,6 +46,14 @@ */ #include <machine/psl.h> +#ifndef _LOCORE + +typedef struct { + uint16_t _psl; +} ipl_cookie_t; + +#endif + #if defined(_KERNEL) && !defined(_LOCORE) /* spl0 requires checking for software interrupts */ #define spl1() _spl(PSL_S|PSL_IPL1) @@ -83,9 +91,6 @@ int spl0(void); extern const uint16_t ipl2psl_table[NIPL]; typedef int ipl_t; -typedef struct { - uint16_t _psl; -} ipl_cookie_t; static inline ipl_cookie_t makeiplcookie(ipl_t ipl)