Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/include Move the definition of ipl_cookie_t...
details: https://anonhg.NetBSD.org/src/rev/4dd343223787
branches: trunk
changeset: 377424:4dd343223787
user: martin <martin%NetBSD.org@localhost>
date: Tue Jul 11 11:02:07 2023 +0000
description:
Move the definition of ipl_cookie_t out of the kernel-only sections,
some _KMEMUSER applications need it.
diffstat:
sys/arch/sparc64/include/psl.h | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 29c5fb4ebfcf -r 4dd343223787 sys/arch/sparc64/include/psl.h
--- a/sys/arch/sparc64/include/psl.h Tue Jul 11 11:01:18 2023 +0000
+++ b/sys/arch/sparc64/include/psl.h Tue Jul 11 11:02:07 2023 +0000
@@ -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)
{
Home |
Main Index |
Thread Index |
Old Index