From 9b89a0e41dd125f59ed5665fd83c5c03adf2fa08 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 24 Aug 2018 07:57:23 +0200 Subject: [PATCH] reduce size of interrupt states dump --- kernel.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel.asm b/kernel.asm index 5bab991..3d1f102 100644 --- a/kernel.asm +++ b/kernel.asm @@ -283,6 +283,8 @@ InterruptHandler: mfc0 k1, CP0_BadVAddr sw k1, K_BADVADDR(k0) + sw r0, K_REASON+0x1C(k0) + // prevent recursive interrupts if ISR_Main somehow causes an interrupt // lw t1, K_IN_ISR(k0) // bnez t1, ISR_Exit // TODO: reimplement properly @@ -333,10 +335,10 @@ if K_DEBUG { KMaybeDumpString(KS_States) ori a0, k0, K_REASON - lli a1, 0x80 + lli a1, 0x20 ori a2, k0, K_XXD jal DumpAndWrite - lli a3, 0x80 * 4 + lli a3, 0x20 * 4 KMaybeDumpString(KS_Newline) }