diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-26 15:09:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-27 13:15:16 +0200 |
commit | b10a86d463d3bd5b802a01d75d8b8475f3374a49 (patch) | |
tree | 0990dbc90bf2c4b652edeec35109e0e6f5435f75 /Kernel/Graphics | |
parent | ff292fbe5a8c8a33974c5de8a7e08ffd38753977 (diff) | |
download | serenity-b10a86d463d3bd5b802a01d75d8b8475f3374a49.zip |
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.
Diffstat (limited to 'Kernel/Graphics')
-rw-r--r-- | Kernel/Graphics/GraphicsManagement.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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"); |