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:
parent
4561a1992f
commit
f48e3c0f37
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user