Skip to content

Commit 865b1d5

Browse files
More bug info
1 parent 815f061 commit 865b1d5

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

bugs/currentBug.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
T3 locks up endlessly checking TSC2101 interrupts
2-
Randomly locks up for 1-2 seconds(this seems to have t do with the audio bug in applications where pushing the app category selector then white space will make a shorter or longer beep than it should, also lock ups occur in galax when sound plays)
2+
Randomly locks up for 1-2 seconds(this seems to have t do with the audio bug in applications where pushing the app category selector then white space will make a shorter or longer beep than it should, also lock ups occur in galax when sound plays)(Started somewhere between June 9 2019 and June 20 2019, right after all the UART stuff)
33
QT release build is broken

bugs/lockUpBug.png

275 KB
Loading

src/dbvz.c

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -237,26 +237,18 @@ static void pllWakeCpuIfOff(void){
237237
}
238238

239239
static void checkInterrupts(void){
240-
uint32_t activeInterrupts;
241-
uint16_t interruptLevelControlRegister;
242-
uint8_t spi1IrqLevel;
243-
uint8_t uart2IrqLevel;
244-
uint8_t pwm2IrqLevel;
245-
uint8_t timer2IrqLevel;
246-
uint8_t intLevel;
240+
uint32_t activeInterrupts = registerArrayRead32(ISR);
241+
uint16_t interruptLevelControlRegister = registerArrayRead16(ILCR);
242+
uint8_t spi1IrqLevel = interruptLevelControlRegister >> 12;
243+
uint8_t uart2IrqLevel = interruptLevelControlRegister >> 8 & 0x0007;
244+
uint8_t pwm2IrqLevel = interruptLevelControlRegister >> 4 & 0x0007;
245+
uint8_t timer2IrqLevel = interruptLevelControlRegister & 0x0007;
246+
uint8_t intLevel = 0;
247247

248248
//dont waste time if nothing changed
249249
if(!dbvzInterruptChanged)
250250
return;
251251

252-
activeInterrupts = registerArrayRead32(ISR);
253-
interruptLevelControlRegister = registerArrayRead16(ILCR);
254-
spi1IrqLevel = interruptLevelControlRegister >> 12;
255-
uart2IrqLevel = interruptLevelControlRegister >> 8 & 0x0007;
256-
pwm2IrqLevel = interruptLevelControlRegister >> 4 & 0x0007;
257-
timer2IrqLevel = interruptLevelControlRegister & 0x0007;
258-
intLevel = 0;
259-
260252
//static interrupts
261253
if(activeInterrupts & DBVZ_INT_EMIQ)
262254
intLevel = 7;//EMIQ - Emulator IRQ, has nothing to do with emulation, used for debugging on a dev board

0 commit comments

Comments
 (0)