BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / db9a0c170420002cff8cade7e3e598ac9d6fb25a / kernel / panic.c

// Related

Nucleus

Barry Multitasking support db9a0c1 (3 years, 3 months ago)
diff --git a/kernel/panic.c b/kernel/panic.c
index 3e0ac4f..5d1a847 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -256,7 +256,6 @@ kprintf(char *fmt, ...)
 	outb(0xE9, '6');
 	outb(0xE9, 'm');
 
-
 	char buf[1024], *p = buf;
 
 	/* Print message to serial port */
@@ -279,7 +278,6 @@ panic(char *fmt, ...)
 	outb(0xE9, '1');
 	outb(0xE9, 'm');
 
-
 	char buf[1024], *p = buf;
 
 	/* Print error to serial port */
@@ -291,7 +289,7 @@ panic(char *fmt, ...)
 		outb(0xE9, *p++);
 	outb(0xE9, '\n');
 
-	asm volatile("cli");
+	asm volatile("sti");
 	while (1)
 		asm volatile("hlt");
 }