diff options
author | 2009-10-22 22:08:52 +0000 | |
---|---|---|
committer | 2009-10-22 22:08:52 +0000 | |
commit | 91b9a95c5768ded8b9c299978444d7f064ca56c5 (patch) | |
tree | 4a23a82c3d039938b697e36d8440b3b1aeb090a3 /sys/arch/sgi/include/mutex.h | |
parent | sync (diff) | |
download | wireguard-openbsd-91b9a95c5768ded8b9c299978444d7f064ca56c5.tar.xz wireguard-openbsd-91b9a95c5768ded8b9c299978444d7f064ca56c5.zip |
Completely overhaul interrupt handling on sgi. Cpu state now only stores a
logical IPL level, and per-platform (IP27/IP30/IP32) code will from the
necessary hardware mask registers.
This allows the use of more than one interrupt mask register. Also, the
generic (platform independent) interrupt code shrinks a lot, and the actual
interrupt handler chains and masking information is now per-platform private
data.
Interrupt dispatching is generated from a template; more routines will be
added to the template to reduce platform-specific changes and share as much
code as possible.
Tested on IP27, IP30, IP32 and IP35.
Diffstat (limited to 'sys/arch/sgi/include/mutex.h')
-rw-r--r-- | sys/arch/sgi/include/mutex.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sgi/include/mutex.h b/sys/arch/sgi/include/mutex.h index 858d27c6a8f..df505d80ba8 100644 --- a/sys/arch/sgi/include/mutex.h +++ b/sys/arch/sgi/include/mutex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mutex.h,v 1.3 2007/05/14 17:32:15 miod Exp $ */ +/* $OpenBSD: mutex.h,v 1.4 2009/10/22 22:08:54 miod Exp $ */ /* * Copyright (c) 2004 Artur Grabowski <art@openbsd.org> @@ -34,7 +34,7 @@ struct mutex { int mtx_lock; int mtx_wantipl; - int mtx_oldcpl; + int mtx_oldipl; }; void mtx_init(struct mutex *, int); @@ -56,6 +56,6 @@ void mtx_init(struct mutex *, int); #define MUTEX_ASSERT_UNLOCKED(mtx) do { } while (0) #endif -#define MUTEX_OLDIPL(mtx) (mtx)->mtx_oldcpl +#define MUTEX_OLDIPL(mtx) (mtx)->mtx_oldipl #endif |