BarryServer : Git

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

// Related

Nucleus

Barry Improved context switching and interrupt handling d46e09a (3 years, 2 months ago)
diff --git a/kernel/panic.c b/kernel/panic.c
index a489a0a..2c07d24 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -30,8 +30,6 @@ panic(char *fmt, ...)
 	outb(0xE9, '\n');
 
 	/* Halt processor */
-	asm volatile("cli");
-	while (1)
-		asm volatile("hlt");
+	while (1) asm volatile("cli; hlt");
 	__builtin_unreachable();
 }