diff options
author | Marvin Borner | 2020-07-22 19:57:16 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-22 19:57:16 +0200 |
commit | e9c31cf19a30bd2d9960ce8341fea9cbfc973f7a (patch) | |
tree | e598da74f4fb51f926a929d0ae4fda8605d0b3f3 /src/main.c | |
parent | 40cc5e32663cd0350b791b8e54825f564489343f (diff) |
Added basic malloc (WARNING: DUMB!) :)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -5,13 +5,18 @@ #include <serial.h> #include <vesa.h> +u32 HEAP = 0x00200000; +u32 HEAP_START; + void main(struct mem_info *mem_info, struct vid_info *vid_info) { + HEAP_START = HEAP; // For malloc function + mem_info++; // TODO: Use the mmap (or remove)! vbe = vid_info->info; - u32 terminal_background[3] = { 0x1d, 0x1f, 0x24 }; - vesa_clear(terminal_background); + u8 terminal_background[3] = { 0x1d, 0x1f, 0x24 }; + vesa_fill(terminal_background); serial_install(); serial_print("hello\n"); |