summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/ipl_funcs.c
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-08-20 05:25:48 +0000
committerfsmp <fsmp@FreeBSD.org>1997-08-20 05:25:48 +0000
commit2c414e3eff799c18e5d3e8edfe37d7dc71f35c7a (patch)
tree4060f694285dcb8b0a5d572747820da61322b0df /sys/i386/isa/ipl_funcs.c
parentea72b8e976791b005527662091bc146ad0bfd3b6 (diff)
downloadFreeBSD-src-2c414e3eff799c18e5d3e8edfe37d7dc71f35c7a.zip
FreeBSD-src-2c414e3eff799c18e5d3e8edfe37d7dc71f35c7a.tar.gz
Preperation for moving cpl into critical region access.
Several new fine-grained locks. New FAST_INTR() methods: - separate simplelock for FAST_INTR, no more giant lock. - FAST_INTR()s no longer checks ipending on way out of ISR. sio made MP-safe (I hope).
Diffstat (limited to 'sys/i386/isa/ipl_funcs.c')
-rw-r--r--sys/i386/isa/ipl_funcs.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/i386/isa/ipl_funcs.c b/sys/i386/isa/ipl_funcs.c
index fa3136a..c0849cd 100644
--- a/sys/i386/isa/ipl_funcs.c
+++ b/sys/i386/isa/ipl_funcs.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: ipl_funcs.c,v 1.1 1997/05/31 08:57:05 peter Exp $
*/
#include <sys/types.h>
@@ -92,3 +92,13 @@ splx(unsigned ipl)
if (ipending & ~ipl)
splz();
}
+
+#ifdef SMP
+intrmask_t
+splq(intrmask_t mask)
+{
+ intrmask_t tmp = cpl;
+ cpl |= mask;
+ return (tmp);
+}
+#endif
OpenPOWER on IntegriCloud