aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMarvin Borner2020-07-21 21:45:36 +0200
committerMarvin Borner2020-07-21 21:45:36 +0200
commite26cc5e5e2ce6fe5c0fbb7a4ed83e8d81fa2745f (patch)
treea1a277f2b0b193db750e002dfa79cbf0930d23b2 /src/main.c
parentcc308ff776a47d0c69b004713c872c112eda0cfb (diff)
Yaas. May or may not work.
This is actually very dumb. I thought about a fix for the 0x200 inode 16bit overflow since a few days but then I just decided to use a static inode (5) for the kernel. It's way simpler to implement so I'm staying with this for a while (although specific inodes don't work with genext2fs and co AFAIK).
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 82f6961..6b9f2da 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,5 +1,10 @@
int main()
{
+ char *vga = (char *)0x000B8000;
+ for (long i = 0; i < 80 * 25; i++) {
+ *vga++ = 0;
+ *vga++ = 0;
+ }
while (1) {
};
return 0;