mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 08:32:04 +02:00
This commit reorganizes the BootInfo struct definition so it can be shared for all architectures. The existing free extern "C" boot info variables have been removed and replaced with a global BootInfo struct, 'g_boot_info'. On x86-64, the BootInfo is directly copied from the Prekernel-provided struct. On AArch64 and RISC-V, BootInfo is populated during pre_init.
20 lines
454 B
C
20 lines
454 B
C
/*
|
|
* Copyright (c) 2024, Sönke Holz <sholz8530@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Platform.h>
|
|
|
|
#if ARCH(X86_64)
|
|
# include <Kernel/Prekernel/Arch/x86_64/ArchSpecificBootInfo.h>
|
|
#elif ARCH(AARCH64)
|
|
# include <Kernel/Prekernel/Arch/aarch64/ArchSpecificBootInfo.h>
|
|
#elif ARCH(RISCV64)
|
|
# include <Kernel/Prekernel/Arch/riscv64/ArchSpecificBootInfo.h>
|
|
#else
|
|
# error Unknown architecture
|
|
#endif
|