aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/io.c
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-02-23 23:18:48 +0100
committerczjstmax <jstmaxlol@disroot.org>2026-02-23 23:18:48 +0100
commit2420e3f52b62580af9cdd661fb441733e437daf9 (patch)
treea2854d70e7297e9bff879c5dc358dfb95d263fab /src/kernel/io.c
parent6fc0fd2fd64388e32c4ec1cefa2ad8e1e43fdb5a (diff)
lots of changes. restructured repository. switched to limine.
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'src/kernel/io.c')
-rw-r--r--src/kernel/io.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/kernel/io.c b/src/kernel/io.c
new file mode 100644
index 0000000..10fcac1
--- /dev/null
+++ b/src/kernel/io.c
@@ -0,0 +1,15 @@
+#include "api/io.h"
+
+/*
+ * Minimal API for kernel I/O basics
+ */
+
+volatile uint16_t* VGA = (volatile uint16_t*)0xB8000;
+uint16_t cursor = 0;
+
+void RealPrint(const char* str) {
+ while(*str) {
+ VGA[cursor++] = (uint8_t)(*str) | 0x0700; // white on black
+ str++;
+ }
+}