refactor(kernel): change IDT debug message color from blue to green when debugger is attached

This commit is contained in:
EnderIce2 2025-04-17 16:02:22 +00:00
parent bcc2c9d0ab
commit 292bfa362a
Signed by: enderice2
GPG Key ID: FEB6B8A8507BA62E
2 changed files with 2 additions and 2 deletions

View File

@ -650,7 +650,7 @@ namespace InterruptDescriptorTable
#ifdef DEBUG
EnableISRs = !DebuggerIsAttached;
if (!EnableISRs)
KPrint("\x1b[34mThe debugger is attached, disabling all ISRs.");
KPrint("\x1b[32mThe debugger is attached, disabling all ISRs.");
#endif
/* ISR */

View File

@ -464,7 +464,7 @@ namespace InterruptDescriptorTable
// #ifdef DEBUG
EnableISRs = !DebuggerIsAttached;
if (!EnableISRs)
KPrint("\x1b[34mThe debugger is attached, disabling all ISRs.");
KPrint("\x1b[32mThe debugger is attached, disabling all ISRs.");
// #endif
SetEntry(0x0, InterruptHandler_0x0, TRAP_GATE_32BIT, RING0, EnableISRs, GDT_KERNEL_CODE);