コード例 #1
0
ファイル: Processor.cs プロジェクト: Paul1nh0/Singularity
        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();
            }
        }
コード例 #2
0
ファイル: Platform.cs プロジェクト: vmkc/research-environment
 public void EnableInterrupts()
 {
     Isa.EnableInterrupts();
 }