From b794d1f947dd2abadafcb3c960bd3a740c7955cb Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Fri, 31 Oct 2014 11:18:05 +0100 Subject: [PATCH] ARM: platform: grab the FDT from the bootloader --- src/system/kernel/arch/arm/arch_platform.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/system/kernel/arch/arm/arch_platform.cpp b/src/system/kernel/arch/arm/arch_platform.cpp index a018654b1d..4cb1d1c649 100644 --- a/src/system/kernel/arch/arm/arch_platform.cpp +++ b/src/system/kernel/arch/arm/arch_platform.cpp @@ -9,22 +9,28 @@ #include #include #include -#include -#include -#include + +#include + +extern char *gFDT; status_t arch_platform_init(struct kernel_args *kernelArgs) { // NOTE: dprintf() is off-limits here, too early... + + // If we have an FDT blob, point the gFDT to it now + gFDT = (char *)kernelArgs->platform_args.fdt; + return B_OK; } - status_t arch_platform_init_post_vm(struct kernel_args *kernelArgs) { - // now we can use the heap and create areas + // no area to create, since we pass the FDT in the kernel_args + // and the VM automagically creates the area's (with B_EXACT_ADDRESS) + // for them. return B_OK; }