Provide a cast when setting up the interrupt handler (npxintr has a different
signature than the prototype expects)
This commit is contained in:
parent
84677ad64e
commit
33169df7d2
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: npx_pnpbios.c,v 1.5 2002/10/02 05:47:17 thorpej Exp $ */
|
/* $NetBSD: npx_pnpbios.c,v 1.6 2002/11/24 10:19:37 jmc Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: npx_pnpbios.c,v 1.5 2002/10/02 05:47:17 thorpej Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: npx_pnpbios.c,v 1.6 2002/11/24 10:19:37 jmc Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -101,7 +101,7 @@ npx_pnpbios_attach(struct device *parent, struct device *self, void *aux)
|
||||||
irq);
|
irq);
|
||||||
lcr0(rcr0() & ~CR0_NE);
|
lcr0(rcr0() & ~CR0_NE);
|
||||||
sc->sc_ih = isa_intr_establish(0/*XXX*/, irq, ist, IPL_NONE,
|
sc->sc_ih = isa_intr_establish(0/*XXX*/, irq, ist, IPL_NONE,
|
||||||
npxintr, NULL);
|
(int (*)(void *))npxintr, NULL);
|
||||||
break;
|
break;
|
||||||
case NPX_EXCEPTION:
|
case NPX_EXCEPTION:
|
||||||
printf("%s: using exception 16\n", sc->sc_dev.dv_xname);
|
printf("%s: using exception 16\n", sc->sc_dev.dv_xname);
|
||||||
|
|
Loading…
Reference in New Issue