mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
Kernel/riscv64: Unflatten the DeviceTree
This commit is contained in:
parent
d3f6b03733
commit
7309427d2f
3 changed files with 26 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <Kernel/Memory/PhysicalAddress.h>
|
||||
#include <Kernel/Prekernel/Prekernel.h>
|
||||
#include <LibDeviceTree/DeviceTree.h>
|
||||
|
||||
#include <AK/Platform.h>
|
||||
VALIDATE_IS_RISCV64()
|
||||
|
@ -17,7 +18,14 @@ 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<void> unflatten_fdt();
|
||||
void dump_fdt();
|
||||
}
|
||||
|
||||
namespace DeviceTree {
|
||||
DeviceTree const& get();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue