diff options
author | dzwdz | 2023-01-25 21:58:18 +0100 |
---|---|---|
committer | dzwdz | 2023-01-25 21:58:18 +0100 |
commit | e06cf9993b5a40abcf6c1d6c77b497ff69a9fd44 (patch) | |
tree | 923f70a2285c878118fb2eee66446d948b35ec1f /src/kernel/arch/amd64/driver/serial.c | |
parent | f9ce893e143a7c2356a0f2204afac1f37d3e54d2 (diff) |
kernel/driver: consolidate most header files into driver.h
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 e8774b6..5b42d8d 100644 --- a/src/kernel/arch/amd64/driver/serial.c +++ b/src/kernel/arch/amd64/driver/serial.c @@ -13,6 +13,7 @@ static volatile ring_t backlog = {(void*)backlog_buf, sizeof backlog_buf, 0, 0}; static const int COM1 = 0x3f8; static void accept(VfsReq *req); +static void serial_irq(void); static VfsReq *hung_reads = NULL; void serial_init(void) { vfs_root_register("/com1", accept); } @@ -43,7 +44,7 @@ void serial_preinit(void) { } -void serial_irq(void) { +static void serial_irq(void) { ring_put1b((void*)&backlog, port_in8(COM1)); postqueue_ringreadall(&hung_reads, (void*)&backlog); } |