Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Remove __HAVE_GENERIC_SOFT_INTERRUPTS #ifdef.



details:   https://anonhg.NetBSD.org/src/rev/661cc8ea7dda
branches:  trunk
changeset: 520590:661cc8ea7dda
user:      soren <soren%NetBSD.org@localhost>
date:      Mon Jan 14 19:08:35 2002 +0000

description:
Remove __HAVE_GENERIC_SOFT_INTERRUPTS #ifdef.

diffstat:

 sys/arch/mipsco/include/intr.h  |  14 +-------------
 sys/arch/sgimips/include/intr.h |  15 +--------------
 2 files changed, 2 insertions(+), 27 deletions(-)

diffs (78 lines):

diff -r 18017d213d78 -r 661cc8ea7dda sys/arch/mipsco/include/intr.h
--- a/sys/arch/mipsco/include/intr.h    Mon Jan 14 19:07:16 2002 +0000
+++ b/sys/arch/mipsco/include/intr.h    Mon Jan 14 19:08:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.8 2001/09/15 00:46:13 wdk Exp $     */
+/*     $NetBSD: intr.h,v 1.9 2002/01/14 19:08:35 soren Exp $   */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -87,8 +87,6 @@
        splx(s);                                \
 } while (0)
 
-#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
-
 #define softintr_schedule(arg)                                         \
 do {                                                                   \
        struct mipsco_intrhand *__ih = (arg);                           \
@@ -100,16 +98,6 @@
 
 #define        setsoftnet()    softintr_schedule(softnet_intrhand)
 
-#else /* ! __HAVE_GENERIC_SOFT_INTERRUPTS */
-
-#define SIR_NET                0x01
-#define SIR_SERIAL     0x02
-
-# define setsoftclock()        _setsoftintr(MIPS_SOFT_INT_MASK_0)
-# define setsoftnet()  setsoft(SIR_NET)
-# define setsoftserial()       setsoft(SIR_SERIAL)
-#endif /* __HAVE_GENERIC_SOFT_INTERRUPTS */
-
 /*
  * nesting interrupt masks.
  */
diff -r 18017d213d78 -r 661cc8ea7dda sys/arch/sgimips/include/intr.h
--- a/sys/arch/sgimips/include/intr.h   Mon Jan 14 19:07:16 2002 +0000
+++ b/sys/arch/sgimips/include/intr.h   Mon Jan 14 19:08:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.10 2001/11/19 17:36:41 soren Exp $  */
+/*     $NetBSD: intr.h,v 1.11 2002/01/14 19:08:35 soren Exp $  */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -86,8 +86,6 @@
        splx(s);                                \
 } while (0)
 
-#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
-
 #define softintr_schedule(arg)                                         \
 do {                                                                   \
        struct sgimips_intrhand *__ih = (arg);                          \
@@ -99,16 +97,6 @@
 
 #define        setsoftnet()    softintr_schedule(softnet_intrhand)
 
-#else /* ! __HAVE_GENERIC_SOFT_INTERRUPTS */
-
-#define SIR_NET                0x01
-#define SIR_SERIAL     0x02
-
-#define setsoftclock() _setsoftintr(MIPS_SOFT_INT_MASK_0)
-#define setsoftnet()   setsoft(SIR_NET)
-#define setsoftserial()        setsoft(SIR_SERIAL)
-#endif /* __HAVE_GENERIC_SOFT_INTERRUPTS */
-
 #define NINTR  32
 
 struct sgimips_intrhand {
@@ -169,7 +157,6 @@
 void                   softintr_init(void);
 void                   softintr_dispatch(void);
 
-
 #endif /* _LOCORE */
 #endif /* !_KERNEL */
 



Home | Main Index | Thread Index | Old Index