Add clockmask.

This commit is contained in:
mycroft 1994-02-22 23:36:09 +00:00
parent deb02f75b2
commit a8889484e3
4 changed files with 13 additions and 7 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)icu.h 5.6 (Berkeley) 5/9/91
* $Id: icu.h,v 1.8 1993/12/17 00:11:44 mycroft Exp $
* $Id: icu.h,v 1.9 1994/02/22 23:39:30 mycroft Exp $
*/
/*
@ -53,11 +53,12 @@
extern unsigned imen; /* interrupt mask enable */
extern unsigned cpl; /* current priority level mask */
extern unsigned clockmask; /* group of interrupts masked with splclock() */
extern unsigned ttymask; /* group of interrupts masked with spltty() */
extern unsigned biomask; /* group of interrupts masked with splbio() */
extern unsigned netmask; /* group of interrupts masked with splnet() */
extern unsigned impmask; /* group of interrupts masked with splimp() */
extern unsigned astmask; /* group of interrupts masked with splclock() */
extern unsigned astmask; /* group of interrupts masked with spl*() */
#define INTREN(s) do{imen &= ~(s); SET_ICUS();}while(0)
#define INTRDIS(s) do{imen |= (s); SET_ICUS();}while(0)

View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 1993 Charles Hannum.
* Copyright (c) 1993, 1994 Charles Hannum.
* Copyright (c) 1989, 1990 William F. Jolitz.
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)icu.s 7.2 (Berkeley) 5/21/91
* $Id: icu.s,v 1.22 1994/02/01 01:53:39 deraadt Exp $
* $Id: icu.s,v 1.23 1994/02/22 23:36:09 mycroft Exp $
*/
/*
@ -71,6 +71,9 @@ _ipending:
.globl _imen
_imen:
.long 0xffff # interrupt mask enable (all off)
.globl _clockmask
_clockmask:
.long 1
.globl _ttymask
_ttymask:
.long 0
@ -237,7 +240,7 @@ test_ast:
GENSPL(net, _netmask, 16)
GENSPL(imp, _impmask, 15)
GENSPL(high, $-1, 14)
GENSPL(clock, $-1, 13) /* splclock == splhigh ex for count */
GENSPL(clock, _clockmask, 13)
GENSPL(softclock, _astmask, 17)
.globl _spl0

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
* $Id: isa.c,v 1.34 1994/02/16 17:59:21 mycroft Exp $
* $Id: isa.c,v 1.35 1994/02/22 23:36:11 mycroft Exp $
*/
/*
@ -119,6 +119,7 @@ isa_configure()
printf("biomask %x ttymask %x netmask %x\n",
biomask, ttymask, netmask);
clockmask |= astmask;
biomask |= astmask;
ttymask |= astmask;
netmask |= astmask;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
* $Id: isa.c,v 1.34 1994/02/16 17:59:21 mycroft Exp $
* $Id: isa.c,v 1.35 1994/02/22 23:36:11 mycroft Exp $
*/
/*
@ -119,6 +119,7 @@ isa_configure()
printf("biomask %x ttymask %x netmask %x\n",
biomask, ttymask, netmask);
clockmask |= astmask;
biomask |= astmask;
ttymask |= astmask;
netmask |= astmask;