Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/include make spllower() return void.
details: https://anonhg.NetBSD.org/src/rev/aa0a57d8234b
branches: trunk
changeset: 494411:aa0a57d8234b
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Jul 06 04:31:04 2000 +0000
description:
make spllower() return void.
diffstat:
sys/arch/sh3/include/intr.h | 24 ++++--------------------
1 files changed, 4 insertions(+), 20 deletions(-)
diffs (59 lines):
diff -r 21cb4ee2dedf -r aa0a57d8234b sys/arch/sh3/include/intr.h
--- a/sys/arch/sh3/include/intr.h Thu Jul 06 03:52:25 2000 +0000
+++ b/sys/arch/sh3/include/intr.h Thu Jul 06 04:31:04 2000 +0000
@@ -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 @@
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,7 +75,7 @@
* interrupts are pending, call Xspllower() to process them.
*/
static __inline void
-splx(ncpl)
+spllower(ncpl)
register int ncpl;
{
@@ -86,22 +85,6 @@
}
/*
- * 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);
-}
-
-/*
* Hardware interrupt masks
*/
#define splbio() splraise(imask[IPL_BIO])
@@ -129,6 +112,7 @@
#define splimp() splraise(imask[IPL_IMP])
#define splhigh() splraise(imask[IPL_HIGH])
#define spl0() spllower(0)
+#define splx(x) spllower(x)
/*
* Software interrupt registration
Home |
Main Index |
Thread Index |
Old Index