mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![Liav A](/assets/img/avatar_default.png)
The new baked image is a Prekernel and a Kernel baked together now, so essentially we no longer need to pass the Prekernel as -kernel and the actual kernel image as -initrd to QEMU, leaving the option to pass an actual initrd or initramfs module later on with multiboot.
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/StringView.h>
|
|
#include <Kernel/Boot/Multiboot.h>
|
|
#include <Kernel/Memory/PhysicalAddress.h>
|
|
#include <Kernel/Memory/VirtualAddress.h>
|
|
|
|
namespace Kernel::Memory {
|
|
class PageTableEntry;
|
|
}
|
|
|
|
extern "C" PhysicalAddress start_of_prekernel_image;
|
|
extern "C" PhysicalAddress end_of_prekernel_image;
|
|
extern "C" size_t physical_to_virtual_offset;
|
|
extern "C" FlatPtr kernel_mapping_base;
|
|
extern "C" FlatPtr kernel_load_base;
|
|
#if ARCH(X86_64)
|
|
extern "C" u32 gdt64ptr;
|
|
extern "C" u16 code64_sel;
|
|
#endif
|
|
extern "C" PhysicalAddress boot_pml4t;
|
|
extern "C" PhysicalAddress boot_pdpt;
|
|
extern "C" PhysicalAddress boot_pd0;
|
|
extern "C" PhysicalAddress boot_pd_kernel;
|
|
extern "C" Kernel::Memory::PageTableEntry* boot_pd_kernel_pt1023;
|
|
extern "C" StringView 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" PhysicalAddress multiboot_module_physical_ptr;
|
|
extern "C" size_t multiboot_module_length;
|
|
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;
|