Kernel: Disabled dtb stuff for now

This commit is contained in:
Thomas Muller 2022-07-31 23:01:57 -04:00
parent 8274a93abb
commit d100b515d6
Signed by: thomas
GPG key ID: AF006EB730564952
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdint.h> #include <stdint.h>
#include <dtb/dtb.h> // #include <dtb/dtb.h>
#include <opensbi/opensbi.h> #include <opensbi/opensbi.h>
#include <opensbi/extensions/legacy.h> #include <opensbi/extensions/legacy.h>
@ -47,7 +47,8 @@ extern "C" void kmain(unsigned long hart, void *dtb) {
(void)hart; (void)hart;
(void)dtb; (void)dtb;
// D1 doesnt give me dtb ptr? // D1 doesnt give me dtb ptr?
// dtb = (void *)0x5fb38580; /*
dtb = (void *)0x5fb38580;
dtb::DeviceTree dt; dtb::DeviceTree dt;
int res = dtb::validate_and_parse_header(dt, dtb); 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_reserved_regions(dt);
dtb::print_structure_block(dt); dtb::print_structure_block(dt);
} }
*/
namespace base = drivers::opensbi::base; namespace base = drivers::opensbi::base;

View file

@ -13,7 +13,7 @@ kernel_cpp_args = []
kernel_link_args = ['-nostdlib'] kernel_link_args = ['-nostdlib']
subdir('drivers/opensbi') subdir('drivers/opensbi')
subdir('common/dtb') # subdir('common/dtb')
includes = [ includes = [
kernel_includes kernel_includes