Files
Mu/bugs/fixed/crashingWhenRunningAtFullspeed/differenceWhenRunningFaster.txt
2018-09-21 14:23:17 -07:00

31 lines
1.9 KiB
Plaintext

Running at 80%:
Trap F API:AttnDoEmergencySpecialEffects, API number:0xA42F, PC:0x10037160(printed 1 times)
Trap F API:TimGetTicks, API number:0xA0F7, PC:0x1003718A(printed 1 times)
Trap F API:SysEvGroupWait, API number:0xA2CB, PC:0x100371C4(printed 1 times)
Trap F API:SysDoze, API number:0xA08D, PC:0x101157D6(printed 1 times)
Trap F API:HwrDoze, API number:0xA23F, PC:0x10017FA6(printed 1 times)
Trap F API:SysDoze, API number:0xA08D, PC:0x101157D6(printed 1 times)
Trap F API:HwrDoze, API number:0xA23F, PC:0x10017FA6(printed 1 times)
Trap F API:SysDoze, API number:0xA08D, PC:0x101157D6(printed 1 times)
Trap F API:HwrDoze, API number:0xA23F, PC:0x10017FA6(printed 1 times)
Trap F API:SysDoze, API number:0xA08D, PC:0x101157D6(printed 1 times)
Trap F API:HwrDoze, API number:0xA23F, PC:0x10017FA6(printed 1 times)
Running at 100%:
Trap F API:AttnDoEmergencySpecialEffects, API number:0xA42F, PC:0x10037160(printed 1 times)
Trap F API:TimGetTicks, API number:0xA0F7, PC:0x1003718A(printed 1 times)
Trap F API:SysEvGroupWait, API number:0xA2CB, PC:0x100371C4(printed 1 times)
Trap F API:SysDoze, API number:0xA08D, PC:0x101157D6(printed 1 times)(called from an unlabeled location presumably in the AMX68000 kernel)
Trap F API:HwrDoze, API number:0xA23F, PC:0x10017FA6(printed 1 times)(was called directly from SysDoze)
HwrDoze locks up when running at 100%, the cause is currently unknown.
This fixes it but inaccurate, so it has something to do with PCTLR
//power control burst mode
/*
if(pctlr & 0x80)
newCpuSpeed *= (pctlr & 0x1F) / 31.0;
*/
Need to wake the CPU from PCTLR even if the interrupt is masked:
Power Control Enable—This bit controls the operation of the power control module. While this bit is low, the CPU clock is on continu- ously. When this bit is high, the pulse-width comparator presents the clock to the CPU in bursts or disables it. When this bit is high, a masked interrupt can disable the power control module.