From 6d263c7d4e0f4b1d34694b5d3d159ccb20b3db02 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Tue, 19 Dec 2023 01:54:39 +0100 Subject: keyboard driver and threads * PS/2 keyboard driver * interactive shell * move away from \0 terminated strings to sized slices * coroutine threads and IRQ queues --- stage3/pic.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stage3/pic.c') diff --git a/stage3/pic.c b/stage3/pic.c index 726a6da..4ece7c3 100644 --- a/stage3/pic.c +++ b/stage3/pic.c @@ -19,6 +19,11 @@ void ack_irq(u8 lane) outb(IO_PIC1_CTRL, 1 << 5); } +void wait_irq() +{ + asm volatile("hlt"); +} + void unmask_irq(u8 lane) { u8 port = IO_PIC1_DATA; -- cgit v1.2.3