Пример #1
0
 private void sysregInterruptToOther(int value)
 {
     if (value != 0)
     {
         if (RuntimeContextLLE.MainCpu)
         {
             // Interrupt from the main cpu to the Media Engine cpu
             //if (log.DebugEnabled)
             {
                 Console.WriteLine(string.Format("sysregInterruptToOther to ME on {0}", MMIOHandlerMeCore.Instance.ToString()));
             }
             RuntimeContextLLE.triggerInterrupt(RuntimeContextLLE.MediaEngineProcessor, PSP_MECODEC_INTR);
             RuntimeContextLLE.MediaEngineProcessor.triggerException(ExceptionManager.IP2);
         }
         else
         {
             // Interrupt from the Media Engine cpu to the main cpu
             //if (log.DebugEnabled)
             {
                 Console.WriteLine(string.Format("sysregInterruptToOther from ME on {0}", MMIOHandlerMeCore.Instance.ToString()));
             }
             RuntimeContextLLE.triggerInterrupt(RuntimeContextLLE.MainProcessor, PSP_MECODEC_INTR);
         }
     }
 }
Пример #2
0
 private void checkInterrupt()
 {
     if (interrupt != 0)
     {
         RuntimeContextLLE.triggerInterrupt(Processor, PSP_AUDIO_INTR);
     }
     else
     {
         RuntimeContextLLE.clearInterrupt(Processor, PSP_AUDIO_INTR);
     }
 }
Пример #3
0
 private void checkInterrupt()
 {
     if ((isInterruptTriggered & isInterruptEnabled) != 0)
     {
         RuntimeContextLLE.triggerInterrupt(Processor, PSP_GPIO_INTR);
     }
     else
     {
         RuntimeContextLLE.clearInterrupt(Processor, PSP_GPIO_INTR);
     }
 }