Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include Make ipl_cookie_t visible for _KMEMUS...



details:   https://anonhg.NetBSD.org/src/rev/c3dc39f878cf
branches:  trunk
changeset: 377435:c3dc39f878cf
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jul 11 13:06:23 2023 +0000

description:
Make ipl_cookie_t visible for _KMEMUSER userland applications.

diffstat:

 sys/arch/sparc/include/psl.h |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r d259a2fee290 -r c3dc39f878cf sys/arch/sparc/include/psl.h
--- a/sys/arch/sparc/include/psl.h      Tue Jul 11 11:50:39 2023 +0000
+++ b/sys/arch/sparc/include/psl.h      Tue Jul 11 13:06:23 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psl.h,v 1.50 2021/11/02 11:26:04 ryo Exp $ */
+/*     $NetBSD: psl.h,v 1.51 2023/07/11 13:06:23 martin Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -227,6 +227,13 @@
 #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)
 
 /*
@@ -296,11 +303,6 @@ static __inline __attribute__((__always_
 
 _SPLSET(spllowerschedclock, IPL_SCHED)
 
-typedef uint8_t ipl_t;
-typedef struct {
-       ipl_t _ipl;
-} ipl_cookie_t;
-
 static inline __always_inline ipl_cookie_t
 makeiplcookie(ipl_t ipl)
 {



Home | Main Index | Thread Index | Old Index