mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
Kernel/riscv64: Take the memory map from the FDT and dump it
For this the BootInfo struct was made architecture specific
This commit is contained in:
parent
21a21c6a11
commit
d3f6b03733
10 changed files with 368 additions and 119 deletions
|
@ -6,5 +6,18 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Memory/PhysicalAddress.h>
|
||||
#include <Kernel/Prekernel/Prekernel.h>
|
||||
|
||||
#include <AK/Platform.h>
|
||||
VALIDATE_IS_RISCV64()
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
constexpr size_t fdt_storage_size = 2 * MiB;
|
||||
extern u8 s_fdt_storage[fdt_storage_size];
|
||||
|
||||
extern BootInfo s_boot_info;
|
||||
|
||||
void dump_fdt();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue