wm: teppich

Download patch

ref: 189fb3be1c27333f46853fcc68c800379348d026
parent: fb7157467a0a0308e92072d64494aab213b927b2
author: mkf <mkf@cloud9p.org>
date: Tue Dec 5 16:25:26 EST 2023

panic: import

--- /dev/null
+++ b/libc/panic.c
@@ -1,0 +1,12 @@
+#include <u.h>
+#include <cons.h>
+#include <x86.h>
+
+/* abandon hope, all ye who enter here */
+void
+panic(void)
+{
+	cons_write(pccons, "PANIC!\n");
+	cons_write(serialcons, "PANIC!\n");
+	outb(KBC, 0xFE);
+}
--- a/pc/kern.c
+++ b/pc/kern.c
@@ -3,18 +3,8 @@
 #include <mem.h>
 #include <cons.h>
 #include <user.h>
-#include <x86.h>
 
 #include "../cmd/rc.h"
-
-/* abandon hope, all ye who enter here */
-void
-panic(void)
-{
-	cons_write(pccons, "PANIC!\n");
-	cons_write(serialcons, "PANIC!\n");
-	outb(KBC, 0xFE);
-}
 
 void
 kernel_main(void)