summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/driver/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/driver/serial.c')
-rw-r--r--src/kernel/arch/amd64/driver/serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/driver/serial.c b/src/kernel/arch/amd64/driver/serial.c
index 6f383a3..eb347d0 100644
--- a/src/kernel/arch/amd64/driver/serial.c
+++ b/src/kernel/arch/amd64/driver/serial.c
@@ -16,12 +16,13 @@ static bool COM1_exists = false;
static void accept(VfsReq *req);
static void serial_irq(void);
-static VfsReq *hung_reads = NULL;
+static ReqQueue hung_reads;
void serial_init(void) {
if (COM1_exists) {
vfs_root_register("/dev/com1", accept);
}
+ postqueue_init(&hung_reads);
}
static bool serial_selftest(void) {