IrqVector must be multiple of 4

This commit is contained in:
Marty Kraimer
2002-03-08 15:21:30 +00:00
parent a33f03c6ea
commit aecaf46c53

View File

@@ -277,6 +277,11 @@ int __BBConfig(unsigned long Link,
logMsg("Error: BBConfig() Attempt to reconfigure link %d!\n", Link);
return(-1);
}
if (IrqVector%4 != 0)
{
epicsPrintf("Error: BBConfig() IrqVector must be multiple of 4!\n", Link);
return(-1);
}
if ((pBBLink[Link] = (BitbusLinkStruct *) malloc(sizeof(BitbusLinkStruct))) == NULL)
{