summaryrefslogtreecommitdiff
path: root/sys/arch/arc/include/intr.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arc/include/intr.h')
-rw-r--r--sys/arch/arc/include/intr.h98
1 files changed, 0 insertions, 98 deletions
diff --git a/sys/arch/arc/include/intr.h b/sys/arch/arc/include/intr.h
index 1d5cf50c665..2d080522d6c 100644
--- a/sys/arch/arc/include/intr.h
+++ b/sys/arch/arc/include/intr.h
@@ -71,104 +71,6 @@ void set_intr __P((int, int(*)(u_int, struct clockframe *), int));
volatile int cpl, ipending, astpending;
int imask[7];
-#if 0
-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 softintr __P((int));
-
-/*
- * Add a mask to cpl, and return the old value of cpl.
- */
-static __inline int
-splraise(ncpl)
- register int ncpl;
-{
- register int ocpl = cpl;
-
- cpl = ocpl | ncpl;
- return (ocpl);
-}
-
-/*
- * Restore a value to cpl (unmasking interrupts). If any unmasked
- * 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);
-}
-#endif
-
-/*
- * Hardware interrupt masks
- */
-#if 0
-#define splbio() splraise(imask[IPL_BIO])
-#define splnet() splraise(imask[IPL_NET])
-#define spltty() splraise(imask[IPL_TTY])
-#define splclock() splraise(imask[IPL_CLOCK])
-#define splimp() splraise(imask[IPL_IMP])
-#define splstatclock() splclock()
-
-/*
- * Software interrupt masks
- *
- * NOTE: splsoftclock() is used by hardclock() to lower the priority from
- * clock to softclock before it calls softclock().
- */
-#define splsoftclock() spllower(SIR_CLOCKMASK)
-#define splsoftnet() splraise(SIR_NETMASK)
-#define splsofttty() splraise(SIR_TTYMASK)
-
-/*
- * Miscellaneous
- */
-#define splhigh() splraise(-1)
-#define spl0() spllower(0)
-
-/*
- * Software interrupt registration
- *
- * We hand-code this to ensure that it's atomic.
- */
-static __inline void
-softintr(mask)
- register int mask;
-{
-
- __asm __volatile("orl %0,_ipending" : : "ir" (mask));
-}
-
-#define setsoftast() (astpending = 1)
-#define setsoftclock() softintr(1 << SIR_CLOCK)
-#define setsoftnet() softintr(1 << SIR_NET)
-#define setsofttty() softintr(1 << SIR_TTY)
-#endif
-
#endif /* _LOCORE */
#endif /* _ARC_INTR_H_ */