From f30c9803f05e90087e367953aa142275f8688f61 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 26 Apr 2020 23:23:42 +0200 Subject: Awesome new multitasking system and scheduler --- src/kernel/graphics/vesa.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kernel/graphics/vesa.c') diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index f116146..5284f7e 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -183,12 +183,12 @@ void set_optimal_resolution() vbe_set_mode(highest); uint32_t fb_size = vbe_width * vbe_height * vbe_bpl; - cursor_buffer = kmalloc(fb_size); - /* for (uint32_t z = 0; z < fb_size; z += 4096) { */ - /* paging_map((uint32_t)fb + z, (uint32_t)fb + z, PT_PRESENT | PT_RW | PT_USED); */ - /* paging_map((uint32_t)cursor_buffer + z, (uint32_t)cursor_buffer + z, */ - /* PT_PRESENT | PT_RW | PT_USED); */ - /* } */ + /* cursor_buffer = kmalloc(fb_size); */ + for (uint32_t z = 0; z < fb_size; z += 4096) { + paging_map(paging_root_directory, (uint32_t)fb + z, (uint32_t)fb + z); + /* paging_map(paging_root_directory, (uint32_t)cursor_buffer + z, */ + /* (uint32_t)cursor_buffer + z); */ + } if (vbe_height > 1440) vesa_set_font(32); @@ -368,4 +368,4 @@ void vesa_set_color(uint32_t color) { vesa_convert_color(terminal_color, color); vesa_convert_color(terminal_background, default_background_color); -} +} \ No newline at end of file -- cgit v1.2.3