From b905869a35f062a4e5072f10bec3a2ba3db0e365 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 30 Jul 2025 14:32:01 -0400 Subject: working userland with some invoke syscalls --- device/uart.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 device/uart.c (limited to 'device/uart.c') diff --git a/device/uart.c b/device/uart.c new file mode 100644 index 0000000..6728ab1 --- /dev/null +++ b/device/uart.c @@ -0,0 +1,13 @@ +#include "device/uart.h" +#include "device/portio_uart.h" + +void +uart_write(objdir_t *dir, uint64_t entryi, const char *s, size_t w) +{ + objdir_entry_t *entry = objdir_seek(dir, entryi); + if(entry == NULL || entry->type != KO_DEV_UART) return; + +#ifdef ENABLE_PORTIO_UART + portio_uart_write(entry->data, s, w); +#endif +} -- cgit v1.2.1