diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index 5c8edcaa9805..20cd19ee06e6 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -136,7 +136,7 @@ SYSCTL_INT(_hw,HW_FLOATINGPT, floatingpoint, "Floatingpoint instructions executed in hardware"); #ifndef SMP -static u_int npx0_imask = SWI_CLOCK_MASK; +static u_int npx0_imask = SWI_LOW_MASK; static struct gate_descriptor npx_idt_probeintr; static int npx_intrno; static volatile u_int npx_intrs_while_probing; diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 871724cda99e..465ea9849601 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.c @@ -134,7 +134,7 @@ int clkintr_pending; int disable_rtc_set; /* disable resettodr() if != 0 */ volatile u_int idelayed; int statclock_disable; -u_int stat_imask = SWI_CLOCK_MASK; +u_int stat_imask = SWI_LOW_MASK; #ifndef TIMER_FREQ #define TIMER_FREQ 1193182 #endif diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index 871724cda99e..465ea9849601 100644 --- a/sys/amd64/isa/clock.c +++ b/sys/amd64/isa/clock.c @@ -134,7 +134,7 @@ int clkintr_pending; int disable_rtc_set; /* disable resettodr() if != 0 */ volatile u_int idelayed; int statclock_disable; -u_int stat_imask = SWI_CLOCK_MASK; +u_int stat_imask = SWI_LOW_MASK; #ifndef TIMER_FREQ #define TIMER_FREQ 1193182 #endif diff --git a/sys/amd64/isa/intr_machdep.c b/sys/amd64/isa/intr_machdep.c index f9eb11be8201..9c3ce45e82c0 100644 --- a/sys/amd64/isa/intr_machdep.c +++ b/sys/amd64/isa/intr_machdep.c @@ -340,7 +340,7 @@ update_intr_masks(void) maskptr = intr_mptr[intr]; if (!maskptr) continue; - *maskptr |= SWI_CLOCK_MASK | (1 << intr); + *maskptr |= SWI_LOW_MASK | (1 << intr); mask = *maskptr; if (mask != intr_mask[intr]) { #if 0 @@ -427,7 +427,7 @@ icu_setup(int intr, inthand2_t *handler, void *arg, u_int *maskptr, int flags) disable_intr(); intr_handler[intr] = handler; intr_mptr[intr] = maskptr; - intr_mask[intr] = mask | SWI_CLOCK_MASK | (1 << intr); + intr_mask[intr] = mask | SWI_LOW_MASK | (1 << intr); intr_unit[intr] = arg; #ifdef FAST_HI if (flags & INTR_FAST) { diff --git a/sys/amd64/isa/nmi.c b/sys/amd64/isa/nmi.c index f9eb11be8201..9c3ce45e82c0 100644 --- a/sys/amd64/isa/nmi.c +++ b/sys/amd64/isa/nmi.c @@ -340,7 +340,7 @@ update_intr_masks(void) maskptr = intr_mptr[intr]; if (!maskptr) continue; - *maskptr |= SWI_CLOCK_MASK | (1 << intr); + *maskptr |= SWI_LOW_MASK | (1 << intr); mask = *maskptr; if (mask != intr_mask[intr]) { #if 0 @@ -427,7 +427,7 @@ icu_setup(int intr, inthand2_t *handler, void *arg, u_int *maskptr, int flags) disable_intr(); intr_handler[intr] = handler; intr_mptr[intr] = maskptr; - intr_mask[intr] = mask | SWI_CLOCK_MASK | (1 << intr); + intr_mask[intr] = mask | SWI_LOW_MASK | (1 << intr); intr_unit[intr] = arg; #ifdef FAST_HI if (flags & INTR_FAST) { diff --git a/sys/amd64/isa/npx.c b/sys/amd64/isa/npx.c index 5c8edcaa9805..20cd19ee06e6 100644 --- a/sys/amd64/isa/npx.c +++ b/sys/amd64/isa/npx.c @@ -136,7 +136,7 @@ SYSCTL_INT(_hw,HW_FLOATINGPT, floatingpoint, "Floatingpoint instructions executed in hardware"); #ifndef SMP -static u_int npx0_imask = SWI_CLOCK_MASK; +static u_int npx0_imask = SWI_LOW_MASK; static struct gate_descriptor npx_idt_probeintr; static int npx_intrno; static volatile u_int npx_intrs_while_probing; diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 871724cda99e..465ea9849601 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -134,7 +134,7 @@ int clkintr_pending; int disable_rtc_set; /* disable resettodr() if != 0 */ volatile u_int idelayed; int statclock_disable; -u_int stat_imask = SWI_CLOCK_MASK; +u_int stat_imask = SWI_LOW_MASK; #ifndef TIMER_FREQ #define TIMER_FREQ 1193182 #endif diff --git a/sys/i386/include/ipl.h b/sys/i386/include/ipl.h index 0b93fa08f32b..94bb95b3d1ed 100644 --- a/sys/i386/include/ipl.h +++ b/sys/i386/include/ipl.h @@ -69,23 +69,23 @@ /* * Corresponding interrupt-disable masks for cpl. The ordering is now by - * inclusion (where each mask is considered as a set of bits). Everything - * includes SWI_CLOCK_MASK so that softclock() doesn't - * run while other swi handlers are running and timeout routines can call - * swi handlers. - * SWI_TTY_MASK includes SWI_NET_MASK - * in case tty interrupts are processed at splsofttty() for a tty that is in + * inclusion (where each mask is considered as a set of bits). Everything + * except SWI_CLOCK_MASK includes SWI_LOW_MASK so that softclock() and low + * priority swi's don't run while other swi handlers are running and timeout + * routines can call swi handlers. SWI_TTY_MASK includes SWI_NET_MASK in + * case tty interrupts are processed at splsofttty() for a tty that is in * SLIP or PPP line discipline (this is weaker than merging net_imask with * tty_imask in isa.c - splimp() must mask hard and soft tty interrupts, but * spltty() apparently only needs to mask soft net interrupts). */ -#define SWI_TTY_MASK (SWI_TTY_PENDING | SWI_CLOCK_MASK | SWI_NET_MASK) -#define SWI_CAMNET_MASK (SWI_CAMNET_PENDING | SWI_CLOCK_MASK) -#define SWI_CAMBIO_MASK (SWI_CAMBIO_PENDING | SWI_CLOCK_MASK) -#define SWI_NET_MASK (SWI_NET_PENDING | SWI_CLOCK_MASK) -#define SWI_VM_MASK (SWI_VM_PENDING | SWI_CLOCK_MASK) -#define SWI_TQ_MASK (SWI_TQ_PENDING | SWI_CLOCK_MASK) +#define SWI_TTY_MASK (SWI_TTY_PENDING | SWI_LOW_MASK | SWI_NET_MASK) +#define SWI_CAMNET_MASK (SWI_CAMNET_PENDING | SWI_LOW_MASK) +#define SWI_CAMBIO_MASK (SWI_CAMBIO_PENDING | SWI_LOW_MASK) +#define SWI_NET_MASK (SWI_NET_PENDING | SWI_LOW_MASK) +#define SWI_VM_MASK (SWI_VM_PENDING | SWI_LOW_MASK) +#define SWI_TQ_MASK (SWI_TQ_PENDING | SWI_LOW_MASK) #define SWI_CLOCK_MASK SWI_CLOCK_PENDING +#define SWI_LOW_MASK (SWI_TQ_PENDING | SWI_CLOCK_MASK) #define SWI_MASK (~HWI_MASK) /* diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 871724cda99e..465ea9849601 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -134,7 +134,7 @@ int clkintr_pending; int disable_rtc_set; /* disable resettodr() if != 0 */ volatile u_int idelayed; int statclock_disable; -u_int stat_imask = SWI_CLOCK_MASK; +u_int stat_imask = SWI_LOW_MASK; #ifndef TIMER_FREQ #define TIMER_FREQ 1193182 #endif diff --git a/sys/i386/isa/intr_machdep.c b/sys/i386/isa/intr_machdep.c index f9eb11be8201..9c3ce45e82c0 100644 --- a/sys/i386/isa/intr_machdep.c +++ b/sys/i386/isa/intr_machdep.c @@ -340,7 +340,7 @@ update_intr_masks(void) maskptr = intr_mptr[intr]; if (!maskptr) continue; - *maskptr |= SWI_CLOCK_MASK | (1 << intr); + *maskptr |= SWI_LOW_MASK | (1 << intr); mask = *maskptr; if (mask != intr_mask[intr]) { #if 0 @@ -427,7 +427,7 @@ icu_setup(int intr, inthand2_t *handler, void *arg, u_int *maskptr, int flags) disable_intr(); intr_handler[intr] = handler; intr_mptr[intr] = maskptr; - intr_mask[intr] = mask | SWI_CLOCK_MASK | (1 << intr); + intr_mask[intr] = mask | SWI_LOW_MASK | (1 << intr); intr_unit[intr] = arg; #ifdef FAST_HI if (flags & INTR_FAST) { diff --git a/sys/i386/isa/nmi.c b/sys/i386/isa/nmi.c index f9eb11be8201..9c3ce45e82c0 100644 --- a/sys/i386/isa/nmi.c +++ b/sys/i386/isa/nmi.c @@ -340,7 +340,7 @@ update_intr_masks(void) maskptr = intr_mptr[intr]; if (!maskptr) continue; - *maskptr |= SWI_CLOCK_MASK | (1 << intr); + *maskptr |= SWI_LOW_MASK | (1 << intr); mask = *maskptr; if (mask != intr_mask[intr]) { #if 0 @@ -427,7 +427,7 @@ icu_setup(int intr, inthand2_t *handler, void *arg, u_int *maskptr, int flags) disable_intr(); intr_handler[intr] = handler; intr_mptr[intr] = maskptr; - intr_mask[intr] = mask | SWI_CLOCK_MASK | (1 << intr); + intr_mask[intr] = mask | SWI_LOW_MASK | (1 << intr); intr_unit[intr] = arg; #ifdef FAST_HI if (flags & INTR_FAST) { diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index 5c8edcaa9805..20cd19ee06e6 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -136,7 +136,7 @@ SYSCTL_INT(_hw,HW_FLOATINGPT, floatingpoint, "Floatingpoint instructions executed in hardware"); #ifndef SMP -static u_int npx0_imask = SWI_CLOCK_MASK; +static u_int npx0_imask = SWI_LOW_MASK; static struct gate_descriptor npx_idt_probeintr; static int npx_intrno; static volatile u_int npx_intrs_while_probing; diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 871724cda99e..465ea9849601 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -134,7 +134,7 @@ int clkintr_pending; int disable_rtc_set; /* disable resettodr() if != 0 */ volatile u_int idelayed; int statclock_disable; -u_int stat_imask = SWI_CLOCK_MASK; +u_int stat_imask = SWI_LOW_MASK; #ifndef TIMER_FREQ #define TIMER_FREQ 1193182 #endif