Kernel: Disabled dtb stuff for now
This commit is contained in:
parent
8274a93abb
commit
d100b515d6
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue