summaryrefslogtreecommitdiff
path: root/kernel.c
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-07-23 22:53:47 +0200
committerAlejandro Sior <aho@sior.be>2022-07-23 22:53:47 +0200
commitef805e9373fd946bf1fe667bf18a54dfed6d1045 (patch)
tree7762f9574bbd56c502d4dbba1a9d5f3535035211 /kernel.c
kernel: add basic modules: arch, mem, rt
Diffstat (limited to 'kernel.c')
-rw-r--r--kernel.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel.c b/kernel.c
new file mode 100644
index 0000000..860e980
--- /dev/null
+++ b/kernel.c
@@ -0,0 +1,11 @@
+#include <rt.h>
+
+volatile short *fb = (short*)0xB8000;
+
+int boot() {
+ char c = 'A';
+ for (int i = 0; i < 26; i++)
+ fb[i] = (c + i) | 0xD << 8;
+
+ return 0;
+} \ No newline at end of file