mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
dd42093b93
Instead of manually redeclaring those variables in various files this now adds a header file for them.
36 lines
688 B
C++
36 lines
688 B
C++
/*
|
|
* Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
# include <Kernel/Multiboot.h>
|
|
#endif
|
|
|
|
#define MAX_KERNEL_SIZE 0x3000000
|
|
|
|
#ifdef __cplusplus
|
|
namespace Kernel {
|
|
|
|
struct [[gnu::packed]] BootInfo {
|
|
u8 const* start_of_prekernel_image;
|
|
u8 const* end_of_prekernel_image;
|
|
FlatPtr kernel_base;
|
|
multiboot_info* multiboot_info_ptr;
|
|
# if ARCH(X86_64)
|
|
u32 gdt64ptr;
|
|
u16 code64_sel;
|
|
FlatPtr boot_pml4t;
|
|
# endif
|
|
FlatPtr boot_pdpt;
|
|
FlatPtr boot_pd0;
|
|
FlatPtr boot_pd_kernel;
|
|
FlatPtr boot_pd_kernel_pt1023;
|
|
char const* kernel_cmdline;
|
|
};
|
|
}
|
|
#endif
|