Module Name: src Committed By: martin Date: Tue Jul 11 11:02:07 UTC 2023
Modified Files: src/sys/arch/sparc64/include: psl.h Log Message: Move the definition of ipl_cookie_t out of the kernel-only sections, some _KMEMUSER applications need it. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/arch/sparc64/include/psl.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/sparc64/include/psl.h diff -u src/sys/arch/sparc64/include/psl.h:1.62 src/sys/arch/sparc64/include/psl.h:1.63 --- src/sys/arch/sparc64/include/psl.h:1.62 Tue Nov 2 11:26:04 2021 +++ src/sys/arch/sparc64/include/psl.h Tue Jul 11 11:02:07 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: psl.h,v 1.62 2021/11/02 11:26:04 ryo Exp $ */ +/* $NetBSD: psl.h,v 1.63 2023/07/11 11:02:07 martin Exp $ */ /* * Copyright (c) 1992, 1993 @@ -282,6 +282,14 @@ #define SPARC64_BLOCK_SIZE 64 #define SPARC64_BLOCK_ALIGN 0x3f + +#if (defined(_KERNEL) || defined(_KMEMUSER)) && !defined(_LOCORE) +typedef uint8_t ipl_t; +typedef struct { + ipl_t _ipl; +} ipl_cookie_t; +#endif /* _KERNEL|_KMEMUSER&!_LOCORE */ + #if defined(_KERNEL) && !defined(_LOCORE) #if defined(_KERNEL_OPT) @@ -474,11 +482,6 @@ static __inline __always_inline int name } #endif -typedef uint8_t ipl_t; -typedef struct { - ipl_t _ipl; -} ipl_cookie_t; - static __inline ipl_cookie_t makeiplcookie(ipl_t ipl) {