arm64: Wire up FDT
Change-Id: Ib6f60e6d703e9413eb4cef3ec77686cfd71f8e73 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5478 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
00a1f24972
commit
4561a1992f
@ -228,7 +228,7 @@ SYSTEM_ADD_ONS_BUS_MANAGERS = [ FFilterByBuildFeatures
|
||||
mmc
|
||||
scsi
|
||||
pci ps2@x86,x86_64
|
||||
fdt@riscv64,arm
|
||||
fdt@riscv64,arm,arm64
|
||||
random
|
||||
usb
|
||||
virtio
|
||||
|
@ -193,7 +193,7 @@ AddBootModuleSymlinksToPackage
|
||||
nvme_disk
|
||||
openpic@ppc
|
||||
packagefs pci
|
||||
fdt@riscv64,arm
|
||||
fdt@riscv64,arm,arm64
|
||||
scsi scsi_cd scsi_disk scsi_periph silicon_image_3112 highpoint_ide_pci
|
||||
sdhci_pci
|
||||
usb usb_disk <usb>ehci <usb>ohci <usb>uhci <usb>xhci
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <boot/stdio.h>
|
||||
|
||||
#include "efi_platform.h"
|
||||
#include "mmu.h"
|
||||
#include "serial.h"
|
||||
|
||||
#include "aarch64.h"
|
||||
@ -71,7 +72,7 @@ memory_region_type_str(int type)
|
||||
void
|
||||
arch_convert_kernel_args(void)
|
||||
{
|
||||
// empty
|
||||
fix_address(gKernelArgs.arch_args.fdt);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2019 Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2019-2022 Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#include <KernelExport.h>
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user