Store SWI_MASK in a variable so that LKMs can use it portably.

This commit is contained in:
Bruce Evans 1997-07-21 16:43:48 +00:00
parent eae4afa6c0
commit 43ba542895
2 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,7 @@
*
* @(#)ipl.s
*
* $Id: ipl.s,v 1.1 1997/05/26 17:58:27 fsmp Exp $
* $Id: ipl.s,v 1.2 1997/05/31 09:03:52 peter Exp $
*/
@ -62,6 +62,8 @@ _tty_imask: .long 0
_bio_imask: .long 0
.globl _net_imask
_net_imask: .long 0
.globl _soft_imask
_soft_imask: .long SWI_MASK
.globl _softnet_imask
_softnet_imask: .long SWI_NET_MASK
.globl _softtty_imask

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)systm.h 8.7 (Berkeley) 3/29/95
* $Id: systm.h,v 1.51 1997/05/29 04:46:07 peter Exp $
* $Id: systm.h,v 1.52 1997/05/31 09:43:22 peter Exp $
*/
#ifndef _SYS_SYSTM_H_
@ -200,6 +200,7 @@ extern intrmask_t stat_imask; /* interrupts masked with splstatclock() */
extern intrmask_t tty_imask; /* group of interrupts masked with spltty() */
/* Read only */
extern const intrmask_t soft_imask; /* interrupts masked with splsoft*() */
extern const intrmask_t softnet_imask; /* interrupt masked with splnet() */
extern const intrmask_t softtty_imask; /* interrupt masked with splsofttty() */