Use a common numbering of the tty and net software interrupt levels

between the SMP and non-SMP case.  It simplifies the #ifdef's, since
NHWI changes (at least for the moment) when APIC's are involved.
This commit is contained in:
Peter Wemm 1997-04-29 20:05:48 +00:00
parent f2b65e7983
commit 176c49e057
4 changed files with 22 additions and 37 deletions

View File

@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
* $Id: vector.s,v 1.27 1997/04/27 21:18:59 fsmp Exp $
* $Id: vector.s,v 1.28 1997/04/28 01:47:55 fsmp Exp $
*/
/*
@ -413,22 +413,19 @@ ihandlers: /* addresses of interrupt handlers */
#if defined(APIC_IO)
.long Xresume16, Xresume17, Xresume18, Xresume19
.long Xresume20, Xresume21, Xresume22, Xresume23
.long 0, 0, 0, 0, swi_tty, swi_net, _softclock, swi_ast
#else
.long swi_tty, swi_net, 0, 0, 0, 0, 0, 0
.long 0, 0, 0, 0, 0, 0, _softclock, swi_ast
.long 0, 0, 0, 0, 0, 0, 0, 0
#endif /* APIC_IO */
.long 0, 0, 0, 0, swi_tty, swi_net, _softclock, swi_ast
imasks: /* masks for interrupt handlers */
.space NHWI*4 /* padding; HWI masks are elsewhere */
#if defined(APIC_IO)
.long 0, 0, 0, 0 /* padding */
.long SWI_TTY_MASK, SWI_NET_MASK, SWI_CLOCK_MASK, SWI_AST_MASK
#else
.long SWI_TTY_MASK, SWI_NET_MASK, 0, 0, 0, 0, 0, 0
.long 0, 0, 0, 0, 0, 0, SWI_CLOCK_MASK, SWI_AST_MASK
#if !defined(APIC_IO) /* Less padding for APIC_IO, NHWI is higher */
.long 0, 0, 0, 0, 0, 0, 0, 0
#endif /* APIC_IO */
.long 0, 0, 0, 0
.long SWI_TTY_MASK, SWI_NET_MASK, SWI_CLOCK_MASK, SWI_AST_MASK
.globl _intr_nesting_level
_intr_nesting_level:

View File

@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
* $Id: vector.s,v 1.27 1997/04/27 21:18:59 fsmp Exp $
* $Id: vector.s,v 1.28 1997/04/28 01:47:55 fsmp Exp $
*/
/*
@ -413,22 +413,19 @@ ihandlers: /* addresses of interrupt handlers */
#if defined(APIC_IO)
.long Xresume16, Xresume17, Xresume18, Xresume19
.long Xresume20, Xresume21, Xresume22, Xresume23
.long 0, 0, 0, 0, swi_tty, swi_net, _softclock, swi_ast
#else
.long swi_tty, swi_net, 0, 0, 0, 0, 0, 0
.long 0, 0, 0, 0, 0, 0, _softclock, swi_ast
.long 0, 0, 0, 0, 0, 0, 0, 0
#endif /* APIC_IO */
.long 0, 0, 0, 0, swi_tty, swi_net, _softclock, swi_ast
imasks: /* masks for interrupt handlers */
.space NHWI*4 /* padding; HWI masks are elsewhere */
#if defined(APIC_IO)
.long 0, 0, 0, 0 /* padding */
.long SWI_TTY_MASK, SWI_NET_MASK, SWI_CLOCK_MASK, SWI_AST_MASK
#else
.long SWI_TTY_MASK, SWI_NET_MASK, 0, 0, 0, 0, 0, 0
.long 0, 0, 0, 0, 0, 0, SWI_CLOCK_MASK, SWI_AST_MASK
#if !defined(APIC_IO) /* Less padding for APIC_IO, NHWI is higher */
.long 0, 0, 0, 0, 0, 0, 0, 0
#endif /* APIC_IO */
.long 0, 0, 0, 0
.long SWI_TTY_MASK, SWI_NET_MASK, SWI_CLOCK_MASK, SWI_AST_MASK
.globl _intr_nesting_level
_intr_nesting_level:

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: spl.h,v 1.19 1997/04/26 20:04:18 peter Exp $
* $Id: spl.h,v 1.20 1997/04/29 20:00:41 peter Exp $
*/
#ifndef _MACHINE_IPL_H_
@ -46,14 +46,8 @@
* determines which swi will be dispatched next; a higher priority swi
* may be dispatched when a nested h/w interrupt handler returns.
*/
#if defined(APIC_IO)
#define SWI_TTY 28
#define SWI_NET 29
#else
#define SWI_TTY (NHWI + 0)
#define SWI_NET (NHWI + 1)
#endif /* APIC_IO */
#define SWI_CLOCK 30
#define SWI_AST 31

View File

@ -1,6 +1,6 @@
/*
* from: vector.s, 386BSD 0.1 unknown origin
* $Id: vector.s,v 1.27 1997/04/27 21:18:59 fsmp Exp $
* $Id: vector.s,v 1.28 1997/04/28 01:47:55 fsmp Exp $
*/
/*
@ -413,22 +413,19 @@ ihandlers: /* addresses of interrupt handlers */
#if defined(APIC_IO)
.long Xresume16, Xresume17, Xresume18, Xresume19
.long Xresume20, Xresume21, Xresume22, Xresume23
.long 0, 0, 0, 0, swi_tty, swi_net, _softclock, swi_ast
#else
.long swi_tty, swi_net, 0, 0, 0, 0, 0, 0
.long 0, 0, 0, 0, 0, 0, _softclock, swi_ast
.long 0, 0, 0, 0, 0, 0, 0, 0
#endif /* APIC_IO */
.long 0, 0, 0, 0, swi_tty, swi_net, _softclock, swi_ast
imasks: /* masks for interrupt handlers */
.space NHWI*4 /* padding; HWI masks are elsewhere */
#if defined(APIC_IO)
.long 0, 0, 0, 0 /* padding */
.long SWI_TTY_MASK, SWI_NET_MASK, SWI_CLOCK_MASK, SWI_AST_MASK
#else
.long SWI_TTY_MASK, SWI_NET_MASK, 0, 0, 0, 0, 0, 0
.long 0, 0, 0, 0, 0, 0, SWI_CLOCK_MASK, SWI_AST_MASK
#if !defined(APIC_IO) /* Less padding for APIC_IO, NHWI is higher */
.long 0, 0, 0, 0, 0, 0, 0, 0
#endif /* APIC_IO */
.long 0, 0, 0, 0
.long SWI_TTY_MASK, SWI_NET_MASK, SWI_CLOCK_MASK, SWI_AST_MASK
.globl _intr_nesting_level
_intr_nesting_level: