mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
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.
This commit is contained in:
parent
ff292fbe5a
commit
b10a86d463
8 changed files with 67 additions and 25 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <Kernel/Arch/x86/PageDirectory.h>
|
||||
#include <Kernel/Multiboot.h>
|
||||
#include <Kernel/PhysicalAddress.h>
|
||||
#include <Kernel/VirtualAddress.h>
|
||||
|
||||
|
@ -24,3 +25,14 @@ extern "C" PhysicalAddress boot_pd0;
|
|||
extern "C" PhysicalAddress boot_pd_kernel;
|
||||
extern "C" Kernel::PageTableEntry* boot_pd_kernel_pt1023;
|
||||
extern "C" const char* kernel_cmdline;
|
||||
extern "C" u32 multiboot_flags;
|
||||
extern "C" multiboot_memory_map_t* multiboot_memory_map;
|
||||
extern "C" size_t multiboot_memory_map_count;
|
||||
extern "C" multiboot_module_entry_t* multiboot_modules;
|
||||
extern "C" size_t multiboot_modules_count;
|
||||
extern "C" PhysicalAddress multiboot_framebuffer_addr;
|
||||
extern "C" u32 multiboot_framebuffer_pitch;
|
||||
extern "C" u32 multiboot_framebuffer_width;
|
||||
extern "C" u32 multiboot_framebuffer_height;
|
||||
extern "C" u8 multiboot_framebuffer_bpp;
|
||||
extern "C" u8 multiboot_framebuffer_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue