From 4b8518b4e791c68154ec52badcc921b62afafb49 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 28 Apr 2020 18:32:36 +0200 Subject: Maaaany fixes... Sorry for the increasingly worse-getting commit messages :D --- src/kernel/graphics/vesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/graphics/vesa.c') diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index 5284f7e..43b0799 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -184,7 +184,7 @@ void set_optimal_resolution() 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) { + for (uint32_t z = 0; z < fb_size; z += PAGE_S) { 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); */ -- cgit v1.2.3