aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 6b9f2da..bf0e88b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}