This commit is contained in:
Benjamin Kyd
2019-05-02 21:29:22 +01:00
parent 44330e8427
commit 631ea7b7cb
10 changed files with 28 additions and 83 deletions

View File

@@ -7,6 +7,8 @@
#include <kernel/drivers/terminal/terminal.h>
void PanicKernel(char code, char* why, char* where, char* what) {
asm("cli");
if (why == "") {
switch (code) {
case 0x00:
@@ -79,5 +81,7 @@ void PanicKernel(char code, char* why, char* where, char* what) {
Write("Error Code: 0x");
Write(itohx(code));
asm("cli"); // Clear interrupt bit / dissable interrupts
for (;;) {
asm("hlt");
}
}