ref: 2a725ccf44da1b8460834dd4e239ea58e4693595
parent: 0e0590fe5946c9bb1b9777b18099ee452564d1d1
author: 9ferno <gophone2015@gmail.com>
date: Fri Oct 15 10:06:34 EDT 2021
working mp interrupts
--- a/os/pc/devkbd.c
+++ b/os/pc/devkbd.c
@@ -229,7 +229,7 @@
b = c & 0xff;
qproduce(kbd.q, &b, 1);
- /* print("i8042intr b %d %c 0x%x\n", b, b, b); */
+ /* iprint("i8042intr b %d %c 0x%x\n", b, b, b); */
kbdprocesschar(b); /* hack until kbdfs is built */
}
--- a/os/pc/irq.c
+++ b/os/pc/irq.c
@@ -9,7 +9,8 @@
#include "../port/error.h"
static Lock vctllock;
-static Vctl *vclock, *vctl[256];
+static Vctl *vclock;
+extern Vctl *vctl[256];
enum
{