From da653c61488152b27d2ac545fb72a7c6b5af15d9 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sat, 26 Sep 1998 14:25:32 +0000 Subject: Start using the new SWI registration system instead of hardwiring everything. --- sys/kern/kern_intr.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'sys/kern/kern_intr.c') diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 03dc49b992b6..207263736e86 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -23,16 +23,10 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: kern_intr.c,v 1.18 1998/07/15 02:32:08 bde Exp $ + * $Id: kern_intr.c,v 1.19 1998/08/11 15:08:13 bde Exp $ * */ -#ifdef __i386__ - -/* - * This file is pretty i386 specific. I might be able to make it more - * portable in the future but for now turn it off for non-i386 ports. - */ #include #include @@ -44,13 +38,17 @@ #include +#ifdef __i386__ #include #include +#endif #include #include +#ifdef __i386__ + typedef struct intrec { intrmask_t mask; inthand2_t *handler; @@ -62,14 +60,19 @@ typedef struct intrec { int flags; } intrec; +static intrec *intreclist_head[NHWI]; + +#endif + struct swilist { swihand_t *sl_handler; struct swilist *sl_next; }; -static intrec *intreclist_head[NHWI]; static struct swilist swilists[NSWI]; +#ifdef __i386__ + /* * The interrupt multiplexer calls each of the handlers in turn, * and applies the associated interrupt mask to "cpl", which is @@ -443,6 +446,8 @@ unregister_intr(int intr, inthand2_t handler) return (EINVAL); } +#endif /* __i386__ */ + void register_swi(intr, handler) int intr; @@ -528,4 +533,3 @@ unregister_swi(intr, handler) splx(s); } -#endif /* __i386__ */ -- cgit v1.2.3