Define IPL_SCHED at level 11 and make splsched() use it.

This commit is contained in:
pk 2002-12-31 15:51:18 +00:00
parent f3e11e72e9
commit 67e16e38a4
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.5 2002/12/09 16:11:52 pk Exp $ */
/* $NetBSD: intr.h,v 1.6 2002/12/31 15:51:18 pk Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -53,6 +53,7 @@
#define IPL_IMP 7 /* memory allocation */
#define IPL_NET 7 /* network */
#define IPL_CLOCK 10 /* clock */
#define IPL_SCHED 11 /* scheduler */
#define IPL_AUDIO 13 /* audio */
#define IPL_SERIAL 13 /* serial */
#define IPL_STATCLOCK 14 /* statclock */

View File

@ -1,4 +1,4 @@
/* $NetBSD: psl.h,v 1.30 2002/12/06 15:36:45 pk Exp $ */
/* $NetBSD: psl.h,v 1.31 2002/12/31 15:51:18 pk Exp $ */
/*
* Copyright (c) 1992, 1993
@ -85,7 +85,6 @@
#define PIL_SER 13
#define PIL_AUD 13
#define PIL_HIGH 15
#define PIL_SCHED PIL_CLOCK
#define PIL_LOCK PIL_HIGH
/*
@ -362,6 +361,8 @@ _SPLRAISE(splvm, IPL_IMP)
/* clock interrupts at level 10 */
_SPLRAISE(splclock, IPL_CLOCK)
_SPLRAISE(splsched, IPL_SCHED)
/* fd hardware, ts102, and tadpole microcontoller interrupts are at level 11 */
_SPLRAISE(splfd, 11)
_SPLRAISE(splts102, 11)
@ -392,7 +393,6 @@ static __inline int splhigh()
return (oldipl);
}
#define splsched() splhigh()
#define spllock() splhigh()
/* splx does not have a return value */