riscv: 解析dtb,获取可用内存空间并添加到memblock (#486)

This commit is contained in:
LoGin
2024-01-03 18:00:47 +08:00
committed by GitHub
parent 02343d0b5b
commit 45626c859f
16 changed files with 837 additions and 50 deletions

View File

@ -44,6 +44,7 @@ smoltcp = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/smoltcp.g
system_error = { path = "crates/system_error" }
unified-init = { path = "crates/unified-init" }
virtio-drivers = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/virtio-drivers.git", rev = "f1d1cbb" }
fdt = "0.1.5"
# target为x86_64时使用下面的依赖
[target.'cfg(target_arch = "x86_64")'.dependencies]
@ -52,6 +53,11 @@ x86 = "0.52.0"
x86_64 = "0.14.10"
# target为riscv64时使用下面的依赖
[target.'cfg(target_arch = "riscv64")'.dependencies]
# 构建时依赖项
[build-dependencies]
kernel_build = { path = "../build-scripts/kernel_build" }