Beispiel #1
0
 private void AcknowledgeInterrupt(int interruptNumber)
 {
     if (ConnectedMIC != null)
     {
         int cpuid;
         if (machine.SystemBus.TryGetCurrentCPUId(out cpuid))
         {
             ConnectedMIC.CPUAckInterrupt(cpuid, interruptNumber);
         }
         else
         {
             this.Log(LogLevel.Warning, "Acknowledge interrupt - Could not get CPUId.");
         }
     }
 }
Beispiel #2
0
 private int FindBestInterrupt()
 {
     if (ConnectedMIC != null)
     {
         int cpuid;
         if (machine.SystemBus.TryGetCurrentCPUId(out cpuid))
         {
             return(ConnectedMIC.CPUGetInterrupt(cpuid));
         }
         else
         {
             this.Log(LogLevel.Warning, "Find best interrupt - Could not get CPUId.");
         }
     }
     return(0);
 }