From 03c6f3cf458c89df17b02557cd232f9cde73ed54 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 6 Aug 2022 00:12:51 +0200 Subject: make snprintf shared; dynamic resolution support --- src/kernel/arch/amd64/boot.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/arch/amd64/boot.c') diff --git a/src/kernel/arch/amd64/boot.c b/src/kernel/arch/amd64/boot.c index 570cebb..2707223 100644 --- a/src/kernel/arch/amd64/boot.c +++ b/src/kernel/arch/amd64/boot.c @@ -52,6 +52,7 @@ void kmain_early(struct multiboot_info *multiboot) { vid.width = multiboot->framebuffer_width; vid.height = multiboot->framebuffer_height; vid.bpp = multiboot->framebuffer_bpp; + vid.size = vid.pitch * vid.height; kprintf("framebuffer at 0x%x, %ux%u bpp %u\n", vid.b, vid.width, vid.height, vid.bpp); video_init(vid); -- cgit v1.2.3