From b10a86d463d3bd5b802a01d75d8b8475f3374a49 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 26 Jul 2021 15:09:36 +0200 Subject: Prekernel: Export some multiboot parameters in our own BootInfo struct This allows us to specify virtual addresses for things the kernel should access via virtual addresses later on. By doing this we can make the kernel independent from specific physical addresses. --- Kernel/Graphics/GraphicsManagement.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Kernel/Graphics') diff --git a/Kernel/Graphics/GraphicsManagement.cpp b/Kernel/Graphics/GraphicsManagement.cpp index 9a17ea96b0..3b77b17836 100644 --- a/Kernel/Graphics/GraphicsManagement.cpp +++ b/Kernel/Graphics/GraphicsManagement.cpp @@ -109,13 +109,13 @@ UNMAP_AFTER_INIT bool GraphicsManagement::determine_and_initialize_graphics_devi // support, so we want to utilize the provided framebuffer of these // devices, if possible. if (!m_vga_adapter && PCI::is_io_space_enabled(address)) { - if (multiboot_info_ptr->framebuffer_type == MULTIBOOT_FRAMEBUFFER_TYPE_RGB) { + if (multiboot_framebuffer_type == MULTIBOOT_FRAMEBUFFER_TYPE_RGB) { dmesgln("Graphics: Using a preset resolution from the bootloader"); adapter = VGACompatibleAdapter::initialize_with_preset_resolution(address, - PhysicalAddress((u32)(multiboot_info_ptr->framebuffer_addr)), - multiboot_info_ptr->framebuffer_width, - multiboot_info_ptr->framebuffer_height, - multiboot_info_ptr->framebuffer_pitch); + multiboot_framebuffer_addr, + multiboot_framebuffer_width, + multiboot_framebuffer_height, + multiboot_framebuffer_pitch); } } else { dmesgln("Graphics: Using a VGA compatible generic adapter"); -- cgit v1.2.3