diff options
author | Marvin Borner | 2020-07-22 00:50:41 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-22 00:50:41 +0200 |
commit | 16604c4ea0ebe44f12741d3d6efed0dc1867204f (patch) | |
tree | 7560d30955b7619ca53b2b69b4bc8332054e37f5 /src/main.c | |
parent | a06e4d3a2e0c00210b54f5c060e90c8e5b425646 (diff) |
Okidoki, seems to work!
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -1,11 +1,22 @@ -int main() +#include <def.h> + +void clear(); + +// This must kinda be at the top +int main(u32 *mem_info) +{ + mem_info++; // TODO: Use the mmap! + clear(); + while (1) { + }; + return 0; +} + +void clear() { char *vga = (char *)0x000B8000; for (long i = 0; i < 80 * 25; i++) { *vga++ = 0; *vga++ = 0; } - while (1) { - }; - return 0; } |