/* * Copyright (c) 2023, Sönke Holz * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include VALIDATE_IS_RISCV64() namespace Kernel { constexpr size_t fdt_storage_size = 2 * MiB; extern u8 s_fdt_storage[fdt_storage_size]; // FIXME: These should move to an architecture independent location, // once we need device tree parsing in other architectures, like aarch64 extern BootInfo s_boot_info; ErrorOr unflatten_fdt(); void dump_fdt(); ErrorOr get_command_line_from_fdt(); } namespace DeviceTree { DeviceTree const& get(); }