aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMarvin Borner2020-07-22 16:32:32 +0200
committerMarvin Borner2020-07-22 16:32:32 +0200
commit5121d4bc820b39901461c759a8fbd57d3a8462e3 (patch)
tree467775459de88994df48bcaeaed9b39d7703a6e4 /src/main.c
parent881a837adb930a0a3316ab57da95d46c1943f3f1 (diff)
Switched to Makefile.
Kinda for the sake of minimalism
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index b801da9..78a2315 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,11 +1,14 @@
#include <def.h>
+#include <vesa.h>
-// This must kinda be at the top
-int main(u32 *mem_info, u32 *vid_info)
+void main(u32 *mem_info, struct vid_info *vid_info)
{
mem_info++; // TODO: Use the mmap!
- vid_info++; // TODO: Use the VBE struct!
+ vbe = vid_info->info;
+
+ u32 terminal_background[3] = { 0x1d, 0x1f, 0x24 };
+ vesa_clear(terminal_background);
+
while (1) {
};
- return 0;
}