make spllower() return void.

This commit is contained in:
msaitoh 2000-07-06 04:31:04 +00:00
parent 212a0a08d2
commit 7f0eba7ad8
1 changed files with 3 additions and 19 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.5 2000/04/13 15:36:10 msaitoh Exp $ */
/* $NetBSD: intr.h,v 1.6 2000/07/06 04:31:04 msaitoh Exp $ */
/*
* Copyright (c) 1996, 1997 Charles M. Hannum. All rights reserved.
@ -52,8 +52,7 @@ int imask[NIPL];
extern void Xspllower __P((void));
static __inline int splraise __P((int));
static __inline int spllower __P((int));
static __inline void splx __P((int));
static __inline void spllower __P((int));
static __inline void softintr __P((int));
/*
@ -76,29 +75,13 @@ splraise(ncpl)
* interrupts are pending, call Xspllower() to process them.
*/
static __inline void
splx(ncpl)
register int ncpl;
{
cpl = ncpl;
if (ipending & ~ncpl)
Xspllower();
}
/*
* Same as splx(), but we return the old value of spl, for the
* benefit of some splsoftclock() callers.
*/
static __inline int
spllower(ncpl)
register int ncpl;
{
register int ocpl = cpl;
cpl = ncpl;
if (ipending & ~ncpl)
Xspllower();
return (ocpl);
}
/*
@ -129,6 +112,7 @@ spllower(ncpl)
#define splimp() splraise(imask[IPL_IMP])
#define splhigh() splraise(imask[IPL_HIGH])
#define spl0() spllower(0)
#define splx(x) spllower(x)
/*
* Software interrupt registration