Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/include evbarm/intr.h: Define ipl_cookie_t b...
details: https://anonhg.NetBSD.org/src/rev/75d1a1c61d0f
branches: trunk
changeset: 377415:75d1a1c61d0f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jul 11 10:42:07 2023 +0000
description:
evbarm/intr.h: Define ipl_cookie_t before including ARM_INTR_IMPL.
Otherwise arm/mutex.h doesn't work, due to a cyclic dependency which
should really be fixed.
diffstat:
sys/arch/evbarm/include/intr.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r a4d81522cd09 -r 75d1a1c61d0f sys/arch/evbarm/include/intr.h
--- a/sys/arch/evbarm/include/intr.h Tue Jul 11 10:41:58 2023 +0000
+++ b/sys/arch/evbarm/include/intr.h Tue Jul 11 10:42:07 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.28 2020/07/27 10:37:58 skrll Exp $ */
+/* $NetBSD: intr.h,v 1.29 2023/07/11 10:42:07 riastradh Exp $ */
/*
* Copyright (c) 2001, 2003 Wasabi Systems, Inc.
@@ -71,6 +71,11 @@
#include <sys/queue.h>
+typedef uint8_t ipl_t;
+typedef struct {
+ ipl_t _ipl;
+} ipl_cookie_t;
+
#if defined(_MODULE)
int _splraise(int);
@@ -124,11 +129,6 @@ void splx(int);
#endif /* _MODULE */
-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