Change orange screen of death to red bar
This commit is contained in:
parent
5d8343ed40
commit
9932b92963
@ -10,6 +10,7 @@ import hulk.console;
|
|||||||
import hulk.klog;
|
import hulk.klog;
|
||||||
import hulk.apic;
|
import hulk.apic;
|
||||||
import hulk.cpu;
|
import hulk.cpu;
|
||||||
|
import hulk.kfont;
|
||||||
|
|
||||||
struct Idt
|
struct Idt
|
||||||
{
|
{
|
||||||
@ -151,7 +152,7 @@ public extern(C) void isr(ulong vector, ulong arg, Idt.ExceptionStackFrame * sta
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
Console.clear();
|
Console.clear();
|
||||||
Fb.clear(0xFF8000u);
|
Fb.rect(0, 0, Fb.width, Kfont.line_height, 0xCC0000u);
|
||||||
Klog.writefln("ISR %u, error code 0x%x", vector, arg);
|
Klog.writefln("ISR %u, error code 0x%x", vector, arg);
|
||||||
Klog.writefln("RIP = 0x%p", stack_frame.rip);
|
Klog.writefln("RIP = 0x%p", stack_frame.rip);
|
||||||
Klog.writefln("CS = 0x%x", stack_frame.cs);
|
Klog.writefln("CS = 0x%x", stack_frame.cs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user