private void ToString(StringBuilder sb, string name, bool[] values) { if (sb.Length > 0) { sb.Append(", "); } sb.Append(name); sb.Append("["); bool first = true; for (int i = 0; i < values.Length; i++) { if (values[i]) { if (first) { first = false; } else { sb.Append("|"); } sb.Append(IntrManager.getInterruptName(i)); } } sb.Append("]"); }
public static void triggerInterrupt(Processor processor, int interruptNumber) { if (!LLEActive) { return; } MMIOHandlerInterruptMan interruptMan = MMIOHandlerInterruptMan.getInstance(processor); if (!interruptMan.hasInterruptTriggered(interruptNumber)) { //if (log.DebugEnabled) { Console.WriteLine(string.Format("triggerInterrupt 0x{0:X}({1})", interruptNumber, IntrManager.getInterruptName(interruptNumber))); } interruptMan.triggerInterrupt(interruptNumber); } }