From d100b515d68811446ab96591230c7affbe6c7111 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 31 Jul 2022 23:01:57 -0400 Subject: [PATCH] Kernel: Disabled dtb stuff for now --- kernel/kernel.cpp | 6 ++++-- kernel/meson.build | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/kernel.cpp b/kernel/kernel.cpp index e97959e..2e2209b 100644 --- a/kernel/kernel.cpp +++ b/kernel/kernel.cpp @@ -1,7 +1,7 @@ #include #include -#include +// #include #include #include @@ -47,7 +47,8 @@ extern "C" void kmain(unsigned long hart, void *dtb) { (void)hart; (void)dtb; // D1 doesnt give me dtb ptr? - // dtb = (void *)0x5fb38580; + /* + dtb = (void *)0x5fb38580; dtb::DeviceTree dt; int res = dtb::validate_and_parse_header(dt, dtb); @@ -57,6 +58,7 @@ extern "C" void kmain(unsigned long hart, void *dtb) { dtb::print_reserved_regions(dt); dtb::print_structure_block(dt); } + */ namespace base = drivers::opensbi::base; diff --git a/kernel/meson.build b/kernel/meson.build index 198f338..c662b20 100644 --- a/kernel/meson.build +++ b/kernel/meson.build @@ -13,7 +13,7 @@ kernel_cpp_args = [] kernel_link_args = ['-nostdlib'] subdir('drivers/opensbi') -subdir('common/dtb') +# subdir('common/dtb') includes = [ kernel_includes