summaryrefslogtreecommitdiff
path: root/src/arch/i386/log.c
diff options
context:
space:
mode:
authordzwdz2021-07-10 19:36:50 +0200
committerdzwdz2021-07-10 19:36:50 +0200
commita90f613e50b1677b03d19793039e0769a09caf9f (patch)
tree21b10fb5f924d383d13e711b23f2c0b5181feabf /src/arch/i386/log.c
parente1a46050ac834b0d1a125847a117edb56d53f32a (diff)
abstract away logging
Now, the kernel only interfaces with the architecture dependent stuff via functions declared in generic.h. I'll write a linter enforcing this soon.
Diffstat (limited to 'src/arch/i386/log.c')
-rw-r--r--src/arch/i386/log.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/i386/log.c b/src/arch/i386/log.c
new file mode 100644
index 0000000..fc82023
--- /dev/null
+++ b/src/arch/i386/log.c
@@ -0,0 +1,6 @@
+#include <arch/i386/tty.h>
+#include <arch/log.h>
+
+void log_write(const char *buf, size_t len) {
+ tty_write(buf, len);
+}