From 1fdae847125402ea0377fff728b898df6b4b7f5a Mon Sep 17 00:00:00 2001 From: John Winans Date: Fri, 17 Dec 1993 15:54:29 +0000 Subject: [PATCH] Claude had the wronc IRQ vector calcs for non-zero links --- src/drv/drvPEPBitBus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drv/drvPEPBitBus.c b/src/drv/drvPEPBitBus.c index eb57f738e..8f1b4864d 100644 --- a/src/drv/drvPEPBitBus.c +++ b/src/drv/drvPEPBitBus.c @@ -235,7 +235,7 @@ initBB() xvmeReset(pXvmeRegs, i); /* finish reset the PB-BIT module */ /* Attach the Rx interrupt handler routine. Vector based on link # */ - intConnect(INUM_TO_IVEC(PEP_BB_IVEC_BASE + (i*4)), xvmeIrqRdav, i); + intConnect(INUM_TO_IVEC(PEP_BB_IVEC_BASE + (i*2)), xvmeIrqRdav, i); /* start a task to manage the TX link */ sprintf(nameTemp, "%s%d", BBTXLINK_NAME, i); @@ -505,7 +505,7 @@ int link; /* Enable interrupts and check again in case PB-BIT blew it */ lockKey = intLock(); - pXvmeLink[link]->bbRegs->int_vec = PEP_BB_IVEC_BASE; + pXvmeLink[link]->bbRegs->int_vec = PEP_BB_IVEC_BASE +(link*2); intUnlock(lockKey); while (((pXvmeLink[link]->bbRegs->stat_ctl & XVME_RFNE) == 0) && @@ -513,7 +513,7 @@ int link; /* Re-enable ints here each time in case board got reset */ lockKey = intLock(); - pXvmeLink[link]->bbRegs->int_vec = PEP_BB_IVEC_BASE; + pXvmeLink[link]->bbRegs->int_vec = PEP_BB_IVEC_BASE +(link*2); intUnlock(lockKey); semTake(pXvmeLink[link]->rxInt, WAIT_FOREVER); /* wait for message */