mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Kernel: Merge x86_64 and aarch64 init.cpp files
This commit is contained in:
parent
c31dc82b17
commit
bd2011406e
4 changed files with 62 additions and 217 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <AK/Types.h>
|
||||
|
||||
#include <Kernel/Arch/Delay.h>
|
||||
#include <Kernel/Bus/PCI/Initializer.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/kstdio.h>
|
||||
|
@ -28,38 +29,16 @@ namespace Kernel::PCI {
|
|||
bool g_pci_access_io_probe_failed { false };
|
||||
bool g_pci_access_is_disabled_from_commandline { true };
|
||||
|
||||
void initialize()
|
||||
{
|
||||
dbgln("PCI: FIXME: Enable PCI for aarch64 platforms");
|
||||
g_pci_access_io_probe_failed = true;
|
||||
}
|
||||
|
||||
// x86 init
|
||||
|
||||
multiboot_module_entry_t multiboot_copy_boot_modules_array[16];
|
||||
size_t multiboot_copy_boot_modules_count;
|
||||
|
||||
extern "C" {
|
||||
READONLY_AFTER_INIT PhysicalAddress start_of_prekernel_image;
|
||||
READONLY_AFTER_INIT PhysicalAddress end_of_prekernel_image;
|
||||
READONLY_AFTER_INIT size_t physical_to_virtual_offset;
|
||||
// READONLY_AFTER_INIT FlatPtr kernel_mapping_base;
|
||||
READONLY_AFTER_INIT FlatPtr kernel_load_base;
|
||||
READONLY_AFTER_INIT PhysicalAddress boot_pml4t;
|
||||
READONLY_AFTER_INIT PhysicalAddress boot_pdpt;
|
||||
READONLY_AFTER_INIT PhysicalAddress boot_pd0;
|
||||
READONLY_AFTER_INIT PhysicalAddress boot_pd_kernel;
|
||||
READONLY_AFTER_INIT Kernel::Memory::PageTableEntry* boot_pd_kernel_pt1023;
|
||||
READONLY_AFTER_INIT char const* kernel_cmdline;
|
||||
READONLY_AFTER_INIT u32 multiboot_flags;
|
||||
READONLY_AFTER_INIT multiboot_memory_map_t* multiboot_memory_map;
|
||||
READONLY_AFTER_INIT size_t multiboot_memory_map_count;
|
||||
READONLY_AFTER_INIT multiboot_module_entry_t* multiboot_modules;
|
||||
READONLY_AFTER_INIT size_t multiboot_modules_count;
|
||||
READONLY_AFTER_INIT PhysicalAddress multiboot_framebuffer_addr;
|
||||
READONLY_AFTER_INIT u32 multiboot_framebuffer_pitch;
|
||||
READONLY_AFTER_INIT u32 multiboot_framebuffer_width;
|
||||
READONLY_AFTER_INIT u32 multiboot_framebuffer_height;
|
||||
READONLY_AFTER_INIT u8 multiboot_framebuffer_bpp;
|
||||
READONLY_AFTER_INIT u8 multiboot_framebuffer_type;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
FlatPtr kernel_mapping_base;
|
||||
// kprintf.cpp
|
||||
void set_serial_debug_enabled(bool)
|
||||
{
|
||||
dbgln("FIXME: Add support for changing state of serial debugging");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue