2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
6 #include <aros/asmcall.h>
7 #include <proto/arossupport.h>
8 #include <proto/acpica.h>
13 #include "kernel_base.h"
14 #include "kernel_bootmem.h"
15 #include "kernel_debug.h"
16 #include "kernel_globals.h"
17 #include "kernel_intern.h"
22 /* acpica.library is optional */
23 struct Library
*ACPICABase
= NULL
;
25 ULONG
acpi_Initialize(void)
27 struct KernelBase
*KernelBase
= getKernelBase();
28 struct PlatformData
*pdata
= KernelBase
->kb_PlatformData
;
30 ACPICABase
= OpenLibrary("acpica.library", 0);
32 D(bug("[Kernel] core_ACPIInitialise()\n"));
36 D(bug("[Kernel] acpica.library not found, no ACPICA\n"));
41 * ACPI exists. Parse all the data.
42 * Currently we only initialize local APIC.
44 pdata
->kb_APIC
= acpi_APIC_Init();
46 CloseLibrary(ACPICABase
);