invoke arch specific distfiles targets
[AROS.git] / arch / x86_64-pc / kernel / acpi_tables.c
blobd08834e0c5f68973720453db7b603023205cd1ba
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/asmcall.h>
7 #include <resources/acpi.h>
8 #include <proto/arossupport.h>
9 #include <proto/acpi.h>
11 #include <inttypes.h>
12 #include <string.h>
14 #include "kernel_base.h"
15 #include "kernel_bootmem.h"
16 #include "kernel_debug.h"
17 #include "kernel_globals.h"
18 #include "kernel_intern.h"
19 #include "apic.h"
21 #define D(x) x
23 ULONG acpi_Initialize(void)
25 struct KernelBase *KernelBase = getKernelBase();
26 struct PlatformData *pdata = KernelBase->kb_PlatformData;
27 struct ACPIBase *ACPIBase = OpenResource("acpi.resource");
29 D(bug("[Kernel] core_ACPIInitialise()\n"));
31 if (!ACPIBase)
33 D(bug("[Kernel] acpi.resource not found, no ACPI\n"));
34 return 0;
38 * ACPI exists. Parse all the data.
39 * Currently we only initialize local APIC.
41 pdata->kb_APIC = acpi_APIC_Init(ACPIBase);
43 return 1;