From 6fe8073de975ad7722043f9173fec068178e2eac Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 14 Jul 2024 19:19:35 +0200 Subject: kernel: rework postqueue Keeping its old name for now to make things easier for myself. This might just be replaced by sys/queue.h soon. --- src/kernel/arch/amd64/driver/serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/arch/amd64/driver/serial.c') 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) { -- cgit v1.2.3