Make sure we provide splsched() as described in spl(9).
This commit is contained in:
parent
2648536e0c
commit
23a7f255d4
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.1 2000/05/25 22:12:00 is Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.2 2000/08/21 02:06:31 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
@ -227,6 +227,7 @@ softintr(ipl)
|
||||
*/
|
||||
#define splimp() splraise(imask[IPL_IMP])
|
||||
#define splhigh() splraise(imask[IPL_HIGH])
|
||||
#define splsched() splhigh()
|
||||
#define spl0() spllower(0)
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.4 2000/04/15 22:05:52 soda Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.5 2000/08/21 02:06:31 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
|
||||
@ -106,6 +106,7 @@ extern void _clrsoftintr __P((int));
|
||||
#define splsoftnet() _splraise(MIPS_INT_MASK_SPL_SOFT1)
|
||||
#define spllowersoftclock() _spllower(MIPS_INT_MASK_SPL_SOFT0)
|
||||
|
||||
#define splsched() splhigh()
|
||||
#define spllpt() spltty() /* lpt driver */
|
||||
|
||||
struct splvec {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: spl.h,v 1.4 2000/08/16 23:58:29 bjh21 Exp $ */
|
||||
/* $NetBSD: spl.h,v 1.5 2000/08/21 02:06:31 thorpej Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1998 Ben Harris
|
||||
* All rights reserved.
|
||||
@ -72,6 +72,8 @@
|
||||
#define splstatclock() raisespl(IPL_STATCLOCK)
|
||||
#define splhigh() raisespl(IPL_HIGH)
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
#define spl0() lowerspl(IPL_NONE)
|
||||
#define spllowersoftclock() lowerspl(IPL_SOFTCLOCK)
|
||||
#define splx(s) lowerspl(s)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: psl.h,v 1.12 1999/08/05 18:08:09 thorpej Exp $ */
|
||||
/* $NetBSD: psl.h,v 1.13 2000/08/21 02:06:31 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Mark Brinicombe.
|
||||
@ -82,6 +82,8 @@
|
||||
#define splserial() raisespl(_SPL_SERIAL)
|
||||
#define splhigh() raisespl(_SPL_HIGH)
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
#ifdef _KERNEL
|
||||
#ifndef _LOCORE
|
||||
int raisespl __P((int));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.9 1999/08/05 18:08:10 thorpej Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.10 2000/08/21 02:06:32 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -192,6 +192,8 @@ set_sint(pending)
|
||||
#define splhigh() splraise(imask[IPL_HIGH])
|
||||
#define spl0() spllower(0)
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
#endif /* !_LOCORE */
|
||||
|
||||
#endif /* !_BEBOX_INTR_H_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.6 2000/05/05 03:27:22 soren Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.7 2000/08/21 02:06:32 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
|
||||
@ -84,6 +84,8 @@ extern void _clrsoftintr(int);
|
||||
#define splsoftnet() _splraise(MIPS_SOFT_INT_MASK_0|MIPS_SOFT_INT_MASK_1)
|
||||
#define spllowersoftclock() _spllower(MIPS_SOFT_INT_MASK_0)
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
extern unsigned int intrcnt[];
|
||||
#define SOFTCLOCK_INTR 0
|
||||
#define SOFTNET_INTR 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.7 1999/08/05 18:08:10 thorpej Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.8 2000/08/21 02:06:32 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1999 The NetBSD Foundation, Inc.
|
||||
@ -116,6 +116,7 @@ extern unsigned short hp300_ipls[];
|
||||
#define splclock() spl6()
|
||||
#define splstatclock() splclock()
|
||||
#define splhigh() spl7()
|
||||
#define splsched() spl7()
|
||||
|
||||
/* watch out for side effects */
|
||||
#define splx(s) ((s) & PSL_IPL ? _spl((s)) : spl0())
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.5 2000/04/11 17:57:43 uch Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.6 2000/08/21 02:06:32 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
|
||||
@ -78,6 +78,8 @@ void _clrsoftintr __P((int));
|
||||
#define splsoftclock() _splraise(MIPS_SOFT_INT_MASK_0)
|
||||
#define splsoftnet() _splraise(MIPS_SOFT_INT_MASK_0|MIPS_SOFT_INT_MASK_1)
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
struct splvec {
|
||||
int splbio;
|
||||
int splnet;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.14 2000/06/08 23:03:13 cgd Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.15 2000/08/21 02:06:32 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -135,6 +135,7 @@ spllower(ncpl)
|
||||
*/
|
||||
#define splimp() splraise(imask[IPL_IMP])
|
||||
#define splhigh() splraise(imask[IPL_HIGH])
|
||||
#define splsched() splhigh()
|
||||
#define spl0() spllower(0)
|
||||
#define splx(x) spllower(x)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.6 2000/02/11 13:15:44 tsubai Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.7 2000/08/21 02:06:32 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -188,6 +188,7 @@ softintr(ipl)
|
||||
*/
|
||||
#define splimp() splraise(imask[IPL_IMP])
|
||||
#define splhigh() splraise(imask[IPL_HIGH])
|
||||
#define splsched() splhigh()
|
||||
#define spl0() spllower(0)
|
||||
|
||||
#define setsoftclock() softintr(SIR_CLOCK)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.2 2000/08/15 04:56:45 wdk Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.3 2000/08/21 02:06:33 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
|
||||
@ -106,6 +106,7 @@ extern void _clrsoftintr __P((int));
|
||||
#define splclock() _splraise(MIPS_INT_MASK_SPL2)
|
||||
#define splstatclock() _splraise(MIPS_INT_MASK_SPL2)
|
||||
#define splhigh() _splraise(MIPS_INT_MASK_SPL2)
|
||||
#define splsched() splhigh()
|
||||
|
||||
#define splsoftclock() _splraise(MIPS_INT_MASK_SPL_SOFT0)
|
||||
#define splsoftnet() _splraise(MIPS_INT_MASK_SPL_SOFT1)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.7 2000/04/14 10:11:06 tsubai Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.8 2000/08/21 02:06:33 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
|
||||
@ -95,6 +95,7 @@ extern void _clrsoftintr __P((int));
|
||||
#define splclock() _splraise(MIPS_INT_MASK_SPL2)
|
||||
#define splstatclock() _splraise(MIPS_INT_MASK_SPL2)
|
||||
#define splhigh() _splraise(MIPS_INT_MASK_SPL2)
|
||||
#define splsched() splhigh()
|
||||
|
||||
#define splsoftclock() _splraise(MIPS_INT_MASK_SPL_SOFT0)
|
||||
#define splsoftnet() _splraise(MIPS_INT_MASK_SPL_SOFT1)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.6 1999/08/05 18:08:12 thorpej Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.7 2000/08/21 02:06:33 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997 Scott Reynolds
|
||||
@ -46,7 +46,7 @@
|
||||
|
||||
#define splhigh() spl7()
|
||||
#define splserial() _splraise(PSL_S|PSL_IPL5)
|
||||
#define splsched() _splraise(PSL_S|PSL_IPL3)
|
||||
#define splsched() spl7()
|
||||
#define splclock() _splraise(PSL_S|PSL_IPL6)
|
||||
#define splstatclock() splclock()
|
||||
#define splimp() _splraise(PSL_S|PSL_IPL6)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.h,v 1.7 2000/05/26 21:20:05 thorpej Exp $ */
|
||||
/* $NetBSD: cpu.h,v 1.8 2000/08/21 02:06:33 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995-1997 Wolfgang Solfrank.
|
||||
@ -94,6 +94,8 @@ extern struct machvec machine_interface;
|
||||
#define irq_establish(irq, level, handler, arg) \
|
||||
((*machine_interface.irq_establish)((irq), (level), (handler), (arg)))
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
#define CLKF_USERMODE(frame) (((frame)->srr1 & PSL_PR) != 0)
|
||||
#define CLKF_BASEPRI(frame) ((frame)->pri == 0)
|
||||
#define CLKF_PC(frame) ((frame)->srr0)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: psl.h,v 1.21 1999/08/05 18:08:12 thorpej Exp $ */
|
||||
/* $NetBSD: psl.h,v 1.22 2000/08/21 02:06:33 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -201,6 +201,7 @@ splx(ncpl)
|
||||
* Miscellaneous
|
||||
*/
|
||||
#define splhigh() splraise(imask[IPL_HIGH])
|
||||
#defien splsched() splhigh()
|
||||
#define spl0() splx(imask[IPL_ZERO])
|
||||
#define splnone() spl0()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.15 2000/04/11 02:43:52 nisimura Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.16 2000/08/21 02:06:33 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
|
||||
@ -70,6 +70,8 @@ void _clrsoftintr __P((int));
|
||||
#define splsoftclock() _splraise(MIPS_SOFT_INT_MASK_0)
|
||||
#define splsoftnet() _splraise(MIPS_SOFT_INT_MASK_0|MIPS_SOFT_INT_MASK_1)
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
struct splvec {
|
||||
int splbio;
|
||||
int splnet;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.2 2000/08/14 09:55:41 kleink Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.3 2000/08/21 02:06:33 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -185,6 +185,7 @@ set_sint(pending)
|
||||
#define setsoftserial() set_sint(SINT_SERIAL);
|
||||
|
||||
#define splhigh() splraise(imask[IPL_HIGH])
|
||||
#define splsched() splhigh()
|
||||
#define splx(x) spllower(x)
|
||||
#define spl0() spllower(0)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.2 2000/06/29 15:36:48 soren Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.3 2000/08/21 02:06:34 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang
|
||||
@ -93,6 +93,7 @@ extern u_int32_t clockmask;
|
||||
#define splsoftclock() _splraise(MIPS_SOFT_INT_MASK_0 | MIPS_SOFT_INT_MASK_1)
|
||||
#define splsoftnet() _splraise(MIPS_SOFT_INT_MASK_1)
|
||||
|
||||
#define splsched() splhigh()
|
||||
#define spllpt() spltty()
|
||||
|
||||
extern unsigned int intrcnt[];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.7 2000/08/17 00:01:53 msaitoh Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.8 2000/08/21 02:06:34 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996, 1997 Charles M. Hannum. All rights reserved.
|
||||
@ -111,6 +111,7 @@ spllower(ncpl)
|
||||
*/
|
||||
#define splimp() splraise(imask[IPL_IMP])
|
||||
#define splhigh() splraise(imask[IPL_HIGH])
|
||||
#define splsched() splhigh()
|
||||
#define spl0() spllower(0)
|
||||
#define splx(x) spllower(x)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: psl.h,v 1.21 2000/06/09 10:43:52 pk Exp $ */
|
||||
/* $NetBSD: psl.h,v 1.22 2000/08/21 02:06:34 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -230,6 +230,8 @@ static __inline int splhigh()
|
||||
return (oldipl);
|
||||
}
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
/* splx does not have a return value */
|
||||
static __inline void splx(newipl)
|
||||
int newipl;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: psl.h,v 1.13 2000/07/23 07:02:19 eeh Exp $ */
|
||||
/* $NetBSD: psl.h,v 1.14 2000/08/21 02:06:34 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -404,6 +404,8 @@ SPLHOLD(splstatclock, 14)
|
||||
|
||||
SPLHOLD(splhigh, 15)
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
/* splx does not have a return value */
|
||||
#ifdef SPLDEBUG
|
||||
/* Keep gcc happy -- reduce warnings */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.h,v 1.5 2000/07/01 06:43:42 matt Exp $ */
|
||||
/* $NetBSD: intr.h,v 1.6 2000/08/21 02:06:34 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Matt Thomas.
|
||||
@ -120,6 +120,8 @@ do { \
|
||||
#define splhigh() _splraise(IPL_HIGH) /* IPL1F */
|
||||
#define splstatclock() splclock()
|
||||
|
||||
#define splsched() splhigh()
|
||||
|
||||
/* These are better to use when playing with VAX buses */
|
||||
#define spl4() splx(0x14)
|
||||
#define spl5() splx(0x15)
|
||||
|
Loading…
Reference in New Issue
Block a user