aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/io
diff options
context:
space:
mode:
authorMarvin Borner2019-11-23 00:36:28 +0100
committerMarvin Borner2019-11-23 00:36:28 +0100
commit45d9495e77dba212551ae9bc8e09b51e9ed6d324 (patch)
tree1e8ead9a55b41fa009c28823ca7a9ac0b1b5b2fe /src/kernel/io
parent4b178c0feb4c415be36be0e4c0def8c447ed42af (diff)
Tried implementing memory based paging...
Also did many other fixes/improvements. While I think I did most things correct, the ACPI doesn't work anymore (triple fault) and the resolution detection fails with 0x2... :c
Diffstat (limited to 'src/kernel/io')
-rw-r--r--src/kernel/io/io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kernel/io/io.c b/src/kernel/io/io.c
index acbe3dc..1ee76a0 100644
--- a/src/kernel/io/io.c
+++ b/src/kernel/io/io.c
@@ -2,6 +2,8 @@
#include <kernel/lib/lib.h>
#include <kernel/io/io.h>
#include <kernel/system.h>
+#include <mlibc/string.h>
+#include <mlibc/stdlib.h>
uint8_t receive_b(uint16_t port) {
uint8_t value;
@@ -88,6 +90,6 @@ void serial_write_hex(int n) {
}
void serial_write_dec(int n) {
- char string[16];
- serial_write(itoa(n, string));
+ char *text = itoa(n);
+ serial_write(text);
}