arm64: Wire up ACPI

Change-Id: I62ce53179d0c073680df403434b01b0404c53378
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5270
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
milek7 2022-03-29 02:57:10 +02:00 committed by Adrien Destugues
parent 4561a1992f
commit f48e3c0f37
4 changed files with 36 additions and 2 deletions

View File

@ -223,7 +223,7 @@ SYSTEM_ADD_ONS_DRIVERS_SENSOR = [ FFilterByBuildFeatures
SYSTEM_ADD_ONS_BUS_MANAGERS = [ FFilterByBuildFeatures
acpi@x86,x86_64 agp_gart@x86,x86_64 ata
acpi@x86,x86_64,arm64 agp_gart@x86,x86_64 ata
i2c@x86,x86_64 isa@x86,x86_64
mmc
scsi

View File

@ -182,7 +182,7 @@ AddFilesToPackage data KeyboardLayouts ThinkPad
# boot module links
AddBootModuleSymlinksToPackage
acpi@x86,x86_64 ahci ata ata_adapter
acpi@x86,x86_64,arm64 ahci ata ata_adapter
bfs
dpc
efi_gpt

View File

@ -0,0 +1,27 @@
/*
* Copyright 2022, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#include <ACPI.h>
extern "C" {
#include "acpi.h"
#include "accommon.h"
}
#include "arch_init.h"
ACPI_PHYSICAL_ADDRESS
arch_init_find_root_pointer()
{
return 0;
}
void
arch_init_interrupt_controller()
{
//stub
}

View File

@ -5,9 +5,11 @@
#include <KernelExport.h>
#include <arch/platform.h>
#include <boot/kernel_args.h>
#include <boot_item.h>
void *gFDT = NULL;
phys_addr_t sACPIRootPointer = 0;
status_t
@ -21,6 +23,11 @@ arch_platform_init(struct kernel_args *kernelArgs)
status_t
arch_platform_init_post_vm(struct kernel_args *kernelArgs)
{
if (kernelArgs->arch_args.acpi_root) {
sACPIRootPointer = kernelArgs->arch_args.acpi_root.Get();
add_boot_item("ACPI_ROOT_POINTER", &sACPIRootPointer, sizeof(sACPIRootPointer));
}
return B_OK;
}