Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / arch / x86_64-pc / kernel / acpi_tables.c
blob491531129a2b5e35686ef566b3a9722eac80362d
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/asmcall.h>
7 #include <proto/arossupport.h>
8 #include <proto/acpica.h>
10 #include <inttypes.h>
11 #include <string.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"
18 #include "apic.h"
20 #define D(x) x
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"));
34 if (!ACPICABase)
36 D(bug("[Kernel] acpica.library not found, no ACPICA\n"));
37 return 0;
41 * ACPI exists. Parse all the data.
42 * Currently we only initialize local APIC.
44 pdata->kb_APIC = acpi_APIC_Init();
46 CloseLibrary(ACPICABase);
47 ACPICABase = NULL;
49 return 1;