Module Name: src Committed By: riastradh Date: Tue Jul 11 10:42:07 UTC 2023
Modified Files: src/sys/arch/evbarm/include: intr.h Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/arch/evbarm/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/evbarm/include/intr.h diff -u src/sys/arch/evbarm/include/intr.h:1.28 src/sys/arch/evbarm/include/intr.h:1.29 --- src/sys/arch/evbarm/include/intr.h:1.28 Mon Jul 27 10:37:58 2020 +++ src/sys/arch/evbarm/include/intr.h Tue Jul 11 10:42:07 2023 @@ -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) {