xref: /haiku/src/system/kernel/arch/arm64/arch_platform.cpp (revision a127b88ecbfab58f64944c98aa47722a18e363b2)
1 /*
2  * Copyright 2019-2022 Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #include <KernelExport.h>
6 #include <arch/platform.h>
7 #include <boot/kernel_args.h>
8 #include <boot_item.h>
9 
10 
11 void *gFDT = NULL;
12 phys_addr_t sACPIRootPointer = 0;
13 
14 
15 status_t
16 arch_platform_init(struct kernel_args *kernelArgs)
17 {
18 	gFDT = kernelArgs->arch_args.fdt;
19 	return B_OK;
20 }
21 
22 
23 status_t
24 arch_platform_init_post_vm(struct kernel_args *kernelArgs)
25 {
26 	if (kernelArgs->arch_args.acpi_root) {
27 		sACPIRootPointer = kernelArgs->arch_args.acpi_root.Get();
28 		add_boot_item("ACPI_ROOT_POINTER", &sACPIRootPointer, sizeof(sACPIRootPointer));
29 	}
30 
31 	return B_OK;
32 }
33 
34 
35 status_t
36 arch_platform_init_post_thread(struct kernel_args *kernelArgs)
37 {
38 	return B_OK;
39 }
40