diff options
author | Marvin Borner | 2020-07-22 14:36:12 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-22 14:36:12 +0200 |
commit | 80542fc9d916cf2b89f8d6782c82bc6f0ad67649 (patch) | |
tree | 96e14e13d296bb739b617c3793a788d6ce09bc5d /src/main.c | |
parent | 727df295bd6db39d4c1131511bc55b6a7b3f0dec (diff) |
Added VESA support in bootloader
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -1,22 +1,11 @@ #include <def.h> -void clear(); - // This must kinda be at the top -int main(u32 *mem_info) +int main(u32 *mem_info, u32 *vid_info) { mem_info++; // TODO: Use the mmap! - clear(); + vid_info++; // TODO: Use the VBE struct! while (1) { }; return 0; } - -void clear() -{ - char *vga = (char *)0x000B8000; - for (long i = 0; i < 80 * 25; i++) { - *vga++ = 0; - *vga++ = 0; - } -} |