diff options
author | dzwdz | 2024-07-14 19:19:35 +0200 |
---|---|---|
committer | dzwdz | 2024-07-14 19:19:35 +0200 |
commit | 6fe8073de975ad7722043f9173fec068178e2eac (patch) | |
tree | 9427bb0368e25609eea66fa52567b57522b0e0aa /src/kernel/arch/amd64/driver/serial.c | |
parent | b3a86647b644db30f5fd70bd651c44f681962a9b (diff) |
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.
Diffstat (limited to 'src/kernel/arch/amd64/driver/serial.c')
-rw-r--r-- | src/kernel/arch/amd64/driver/serial.c | 3 |
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) { |