diff options
Diffstat (limited to 'kernel/io')
-rw-r--r-- | kernel/io/io.c | 19 | ||||
-rw-r--r-- | kernel/io/panic.c | 16 |
2 files changed, 0 insertions, 35 deletions
diff --git a/kernel/io/io.c b/kernel/io/io.c deleted file mode 100644 index 489148d..0000000 --- a/kernel/io/io.c +++ /dev/null @@ -1,19 +0,0 @@ -#include <lib.h> -#include <stdio.h> -#include <comus/asm.h> - -#define PORT 0x3F8 -static void serial_out(uint8_t ch) -{ - // wait for output to be free - while ((inb(PORT + 5) & 0x20) == 0) - ; - outb(PORT, ch); -} - -void fputc(FILE *stream, char c) -{ - (void)stream; - - serial_out(c); -} diff --git a/kernel/io/panic.c b/kernel/io/panic.c deleted file mode 100644 index 403418f..0000000 --- a/kernel/io/panic.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <lib.h> -#include <stdarg.h> -#include <comus/asm.h> - -__attribute__((noreturn)) void panic(const char *format, ...) -{ - cli(); - va_list list; - va_start(list, format); - printf("\n\n!!! PANIC !!!\n"); - vprintf(format, list); - printf("\n\n"); - - while (1) - halt(); -} |