/* * Copyright 2006, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * Ingo Weinhold * Axel Dörfler, axeld@pinc-software.de */ #include #include #include #include static phys_addr_t sACPIRootPointer = 0; status_t arch_platform_init(struct kernel_args *args) { return B_OK; } status_t arch_platform_init_post_vm(struct kernel_args *args) { // Now we can add boot items; pass on the ACPI root pointer sACPIRootPointer = args->arch_args.acpi_root.Get(); add_boot_item("ACPI_ROOT_POINTER", &sACPIRootPointer, sizeof(sACPIRootPointer)); return B_OK; } status_t arch_platform_init_post_thread(struct kernel_args *args) { // APM is not supported on x86_64. #ifndef __x86_64__ apm_init(args); #endif return B_OK; }