#include "global.h"
#include "ultra64/internal.h"

void __osSetHWIntrRoutine(s32 idx, OSMesgQueue* queue, OSMesg msg) {
    register s32 prevInt = __osDisableInt();

    __osHwIntTable[idx].queue = queue;
    __osHwIntTable[idx].msg = msg;

    __osRestoreInt(prevInt);
}
