mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
refactor(kernel): change IDT debug message color from blue to green when debugger is attached
This commit is contained in:
parent
bcc2c9d0ab
commit
292bfa362a
@ -650,7 +650,7 @@ namespace InterruptDescriptorTable
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
EnableISRs = !DebuggerIsAttached;
|
EnableISRs = !DebuggerIsAttached;
|
||||||
if (!EnableISRs)
|
if (!EnableISRs)
|
||||||
KPrint("\x1b[34mThe debugger is attached, disabling all ISRs.");
|
KPrint("\x1b[32mThe debugger is attached, disabling all ISRs.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ISR */
|
/* ISR */
|
||||||
|
@ -464,7 +464,7 @@ namespace InterruptDescriptorTable
|
|||||||
// #ifdef DEBUG
|
// #ifdef DEBUG
|
||||||
EnableISRs = !DebuggerIsAttached;
|
EnableISRs = !DebuggerIsAttached;
|
||||||
if (!EnableISRs)
|
if (!EnableISRs)
|
||||||
KPrint("\x1b[34mThe debugger is attached, disabling all ISRs.");
|
KPrint("\x1b[32mThe debugger is attached, disabling all ISRs.");
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
SetEntry(0x0, InterruptHandler_0x0, TRAP_GATE_32BIT, RING0, EnableISRs, GDT_KERNEL_CODE);
|
SetEntry(0x0, InterruptHandler_0x0, TRAP_GATE_32BIT, RING0, EnableISRs, GDT_KERNEL_CODE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user