summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>1998-12-24 06:01:15 +0000
committermjacob <mjacob@FreeBSD.org>1998-12-24 06:01:15 +0000
commitb957d414e4b015dfc38081bae17ca5989296ee5c (patch)
treee0f5d92cc6a3ffd1a2f12092b72c697944d4b803
parent32f3cb7ac12c1450ed360431037fce9cbeffc3f5 (diff)
downloadFreeBSD-src-b957d414e4b015dfc38081bae17ca5989296ee5c.zip
FreeBSD-src-b957d414e4b015dfc38081bae17ca5989296ee5c.tar.gz
a more correct change that should meet the sniff test
-rw-r--r--sys/cam/cam_xpt.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 598cf5e..ac1de3d 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cam_xpt.c,v 1.31 1998/12/22 20:05:21 eivind Exp $
+ * $Id: cam_xpt.c,v 1.32 1998/12/24 02:43:41 mjacob Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@@ -38,6 +38,7 @@
#include <sys/fcntl.h>
#include <sys/md5.h>
#include <sys/devicestat.h>
+#include <sys/interrupt.h>
#ifdef PC98
#include <pc98/pc98/pc98_machdep.h> /* geometry translation */
@@ -572,8 +573,8 @@ static xpt_devicefunc_t xptfinishconfigfunc;
static xpt_devicefunc_t xptpassannouncefunc;
static void xpt_finishconfig(struct cam_periph *periph, union ccb *ccb);
static void xptaction(struct cam_sim *sim, union ccb *work_ccb);
- void swi_camnet(void);
- void swi_cambio(void);
+static swihand_t swi_camnet;
+static swihand_t swi_cambio;
static void camisr(cam_isrq_t *queue);
#if 0
static void xptstart(struct cam_periph *periph, union ccb *work_ccb);
@@ -1198,11 +1199,8 @@ xpt_init()
}
/* Install our software interrupt handlers */
- /* XXX Should call some MI function to do this */
-#ifdef __i386__
- ihandlers[SWI_CAMNET] = swi_camnet;
- ihandlers[SWI_CAMBIO] = swi_cambio;
-#endif
+ register_swi(SWI_CAMNET, swi_camnet);
+ register_swi(SWI_CAMBIO, swi_cambio);
}
static cam_status
@@ -5783,18 +5781,16 @@ xptaction(struct cam_sim *sim, union ccb *work_ccb)
/*
* Should only be called by the machine interrupt dispatch routines,
* so put these prototypes here instead of in the header.
- *
- * XXX we should really have a way to dynamically register SWI handlers.
*/
-void
-swi_camnet()
+static void
+swi_camnet(void)
{
camisr(&cam_netq);
}
-void
-swi_cambio()
+static void
+swi_cambio(void)
{
camisr(&cam_bioq);
}
OpenPOWER on IntegriCloud