reduce size of interrupt states dump
This commit is contained in:
parent
a4bab019d7
commit
9b89a0e41d
1 changed files with 4 additions and 2 deletions
|
@ -283,6 +283,8 @@ InterruptHandler:
|
||||||
mfc0 k1, CP0_BadVAddr
|
mfc0 k1, CP0_BadVAddr
|
||||||
sw k1, K_BADVADDR(k0)
|
sw k1, K_BADVADDR(k0)
|
||||||
|
|
||||||
|
sw r0, K_REASON+0x1C(k0)
|
||||||
|
|
||||||
// prevent recursive interrupts if ISR_Main somehow causes an interrupt
|
// prevent recursive interrupts if ISR_Main somehow causes an interrupt
|
||||||
// lw t1, K_IN_ISR(k0)
|
// lw t1, K_IN_ISR(k0)
|
||||||
// bnez t1, ISR_Exit // TODO: reimplement properly
|
// bnez t1, ISR_Exit // TODO: reimplement properly
|
||||||
|
@ -333,10 +335,10 @@ if K_DEBUG {
|
||||||
KMaybeDumpString(KS_States)
|
KMaybeDumpString(KS_States)
|
||||||
|
|
||||||
ori a0, k0, K_REASON
|
ori a0, k0, K_REASON
|
||||||
lli a1, 0x80
|
lli a1, 0x20
|
||||||
ori a2, k0, K_XXD
|
ori a2, k0, K_XXD
|
||||||
jal DumpAndWrite
|
jal DumpAndWrite
|
||||||
lli a3, 0x80 * 4
|
lli a3, 0x20 * 4
|
||||||
|
|
||||||
KMaybeDumpString(KS_Newline)
|
KMaybeDumpString(KS_Newline)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue