diff options
author | 2007-05-05 12:06:17 +0000 | |
---|---|---|
committer | 2007-05-05 12:06:17 +0000 | |
commit | 9f1a1266e22a19a997a9966e76275c7e161bdaff (patch) | |
tree | 2e1f1c441048c67598058092b125c0a045d8849e /sys | |
parent | vn_access hasn't been used for ages and it's just a wrapper with (diff) | |
download | wireguard-openbsd-9f1a1266e22a19a997a9966e76275c7e161bdaff.tar.xz wireguard-openbsd-9f1a1266e22a19a997a9966e76275c7e161bdaff.zip |
Define MUTEX_OLDIPL where they were missing, will be used (reasonably) shortly.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa/include/mutex.h | 4 | ||||
-rw-r--r-- | sys/arch/powerpc/include/mutex.h | 6 | ||||
-rw-r--r-- | sys/arch/sgi/include/mutex.h | 4 | ||||
-rw-r--r-- | sys/arch/sh/include/mutex.h | 4 |
4 files changed, 11 insertions, 7 deletions
diff --git a/sys/arch/hppa/include/mutex.h b/sys/arch/hppa/include/mutex.h index abfbc11ab17..e5d16258166 100644 --- a/sys/arch/hppa/include/mutex.h +++ b/sys/arch/hppa/include/mutex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mutex.h,v 1.1 2007/05/05 12:00:55 miod Exp $ */ +/* $OpenBSD: mutex.h,v 1.2 2007/05/05 12:06:17 miod Exp $ */ /* * Copyright (c) 2004 Artur Grabowski <art@openbsd.org> @@ -56,4 +56,6 @@ void mtx_init(struct mutex *, int); #define MUTEX_ASSERT_UNLOCKED(mtx) do { } while (0) #endif +#define MUTEX_OLDIPL(mtx) (mtx)->mtx_oldipl + #endif diff --git a/sys/arch/powerpc/include/mutex.h b/sys/arch/powerpc/include/mutex.h index 5c7b60e9764..7c5d36262e6 100644 --- a/sys/arch/powerpc/include/mutex.h +++ b/sys/arch/powerpc/include/mutex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mutex.h,v 1.1 2007/03/22 19:26:28 kettenis Exp $ */ +/* $OpenBSD: mutex.h,v 1.2 2007/05/05 12:06:19 miod Exp $ */ /* * Copyright (c) 2004 Artur Grabowski <art@openbsd.org> @@ -45,8 +45,6 @@ struct mutex { panic("mutex %p held in %s", (mtx), __func__); \ } while (0) -#if 0 -#define MUTEX_OLDIPL(mtx) (mtx)->mtx_oldipl -#endif +#define MUTEX_OLDIPL(mtx) (mtx)->mtx_oldcpl #endif diff --git a/sys/arch/sgi/include/mutex.h b/sys/arch/sgi/include/mutex.h index 2c5d340d309..f3b0bd61b84 100644 --- a/sys/arch/sgi/include/mutex.h +++ b/sys/arch/sgi/include/mutex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mutex.h,v 1.1 2007/05/01 18:59:40 miod Exp $ */ +/* $OpenBSD: mutex.h,v 1.2 2007/05/05 12:06:20 miod Exp $ */ /* * Copyright (c) 2004 Artur Grabowski <art@openbsd.org> @@ -56,4 +56,6 @@ void mtx_init(struct mutex *, int); #define MUTEX_ASSERT_UNLOCKED(mtx) do { } while (0) #endif +#define MUTEX_OLDIPL(mtx) (mtx)->mtx_oldcpl + #endif diff --git a/sys/arch/sh/include/mutex.h b/sys/arch/sh/include/mutex.h index 819ab6209a0..658b3671dc6 100644 --- a/sys/arch/sh/include/mutex.h +++ b/sys/arch/sh/include/mutex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mutex.h,v 1.1 2007/05/01 18:59:40 miod Exp $ */ +/* $OpenBSD: mutex.h,v 1.2 2007/05/05 12:06:20 miod Exp $ */ /* * Copyright (c) 2004 Artur Grabowski <art@openbsd.org> @@ -56,4 +56,6 @@ void mtx_init(struct mutex *, int); #define MUTEX_ASSERT_UNLOCKED(mtx) do { } while (0) #endif +#define MUTEX_OLDIPL(mtx) (mtx)->mtx_oldipl + #endif /* _SH_MUTEX_H_ */ |