1#ifndef RVL_SDK_OS_INTERRUPT_H
2#define RVL_SDK_OS_INTERRUPT_H
12#define OS_INTR_MASK(intr) (1 << (31 - intr))
51typedef void (*OSInterruptHandler)(s16 intr,
OSContext* ctx);
53extern u32 __OSLastInterruptSrr0;
54extern s16 __OSLastInterrupt;
55extern s64 __OSLastInterruptTime;
57BOOL OSDisableInterrupts(
void);
58BOOL OSEnableInterrupts(
void);
59BOOL OSRestoreInterrupts(BOOL status);
61OSInterruptHandler __OSSetInterruptHandler(OSInterruptType type,
62 OSInterruptHandler handler);
63OSInterruptHandler __OSGetInterruptHandler(OSInterruptType type);
65void __OSInterruptInit(
void);
67u32 __OSMaskInterrupts(u32 userMask);
68u32 __OSUnmaskInterrupts(u32 userMask);
69void __OSDispatchInterrupt(u8 intr,
OSContext* ctx);
71void __RAS_OSDisableInterrupts_begin(
void);
72void __RAS_OSDisableInterrupts_end(
void);