--- kernel/bsd/dev/ppc/drvPMU/pmu.m 2018/04/24 18:26:05 1.1 +++ kernel/bsd/dev/ppc/drvPMU/pmu.m 2018/04/24 18:30:36 1.1.1.2 @@ -33,6 +33,7 @@ #import #import #import +#import #import #import #import @@ -135,8 +136,14 @@ kprintf("PMU probe\n"); // This is a still sleazy hack... oldIRQs = [deviceDescription interruptList]; - // This is another sleazy hack. The second irq is two lower in the via table. - tmpIRQ = ((*oldIRQs ^ 0x18) + 2) ^ 0x18; + if (IsSawtooth()) { + // On Sawtooth it is ExtInt1... + tmpIRQ = 47 ^ 0x18; + } else { + // This is another sleazy hack. + //The second irq is two lower in the via table. + tmpIRQ = ((*oldIRQs ^ 0x18) + 2) ^ 0x18; + } newIRQs[0] = *oldIRQs; newIRQs[1] = tmpIRQ;