arm64: Add missing fdt storage for FDT bus

Change-Id: Ifadd47204be1ec688017a567d43dca38c80bd1df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4431
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
This commit is contained in:
Alexander von Gluck IV 2021-09-06 16:41:21 -05:00 committed by Alex von Gluck IV
parent d4ca1c6746
commit 3e8376c6dd
2 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,7 @@ typedef struct {
// needed for UEFI, otherwise kernel acpi support can't find ACPI root
FixedWidthPointer<void> acpi_root;
// TODO: Deal with this later in the port
// FixedWidthPointer<void> fdt;
FixedWidthPointer<void> fdt;
// uart_info uart;
} _PACKED arch_kernel_args;

View File

@ -7,9 +7,13 @@
#include <boot/kernel_args.h>
void* gFDT = NULL;
status_t
arch_platform_init(struct kernel_args *kernelArgs)
{
gFDT = kernelArgs->arch_args.fdt;
return B_OK;
}