setpiinterrupt.c
343 Bytes
#include "osint.h"
/*
* osSetPIIntr
*
*/
void
__osSetPIIntrRoutine(__OSIntrRoutine *ir)
{
register u32 saveMask;
/*
* Lock out interrupts to prevent preemption
*/
saveMask = __osDisableInt();
__osPiIntTable.handler = ir->handler;
__osPiIntTable.stackEnd = ir->stackEnd;
/* Restore interrupts */
__osRestoreInt(saveMask);
}