diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-26 13:17:41 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-26 13:17:41 -0400 |
commit | 2dadbfc899df4179ca70c4ea04f74a5e190c2ae7 (patch) | |
tree | b166aaa9af42406cd07fbaf150f93aefeb2fbe33 /device | |
parent | ddc4fbc15223e362896a9f42beca73f05f48e664 (diff) | |
download | jove-kernel-main.tar.gz jove-kernel-main.tar.bz2 jove-kernel-main.zip |
fix usermode interrupts. add ability to define custom interrupt handlersmain
Diffstat (limited to 'device')
-rw-r--r-- | device/initrd.c | 1 | ||||
-rw-r--r-- | device/portio_uart.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/device/initrd.c b/device/initrd.c index b57687c..e9b3533 100644 --- a/device/initrd.c +++ b/device/initrd.c @@ -5,6 +5,7 @@ #include "device/initrd.h" #include "boot.h" #include "object.h" +#include "api/init.h" #include "init.h" #include "bootargs.h" #include "print.h" diff --git a/device/portio_uart.c b/device/portio_uart.c index 9cc76f8..b049257 100644 --- a/device/portio_uart.c +++ b/device/portio_uart.c @@ -1,5 +1,6 @@ #ifdef ENABLE_PORTIO_UART #include "init.h" +#include "api/init.h" #include "device/portio_uart.h" #include "device/portio.h" @@ -59,6 +60,7 @@ void portio_uart_write(uint64_t dev, const char *s, int n) { for(int i = 0; i < n; i++) { + while((port_inb(dev + 5) & 0x20) == 0); port_outb(dev, s[i]); } } |