public static void RestoreInterrupts(bool enabled) { int i = 0; try { #if CHECK_DISABLE_INTERRUPTS if (!InterruptsDisabled()) { DebugStub.Break(); } #endif i = 1; if (enabled) { i = 2; // Processor flag should be turned off before this call if (GetCurrentProcessor().InInterruptContext) { DebugStub.Break(); } i = 3; Isa.EnableInterrupts(); } i = 5; #if CHECK_DISABLE_INTERRUPTS if (enabled && InterruptsDisabled()) { DebugStub.Break(); } #endif } catch (Exception e) { DebugStub.Break(); } }
public void EnableInterrupts() { Isa.EnableInterrupts(); }