diff options
author | Jan Beulich <jbeulich@suse.com> | 2012-09-20 09:22:55 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2012-09-20 09:22:55 +0200 |
commit | d2f664abe8f8f0159bd7d11390b332f14047b7a9 (patch) | |
tree | 7d737145634a303a00b395fd8d35ef4b797fb620 /xen/include/acpi | |
parent | 3616eb8796b44e7df42687a342b9207b26c9e483 (diff) | |
download | xen-d2f664abe8f8f0159bd7d11390b332f14047b7a9.tar.gz xen-d2f664abe8f8f0159bd7d11390b332f14047b7a9.tar.bz2 xen-d2f664abe8f8f0159bd7d11390b332f14047b7a9.zip |
ACPI: move tables.c fully into .init.*
The only non-init item was the space reserved for the initial tables,
but we can as well dynamically allocate that array.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/acpi')
-rw-r--r-- | xen/include/acpi/platform/aclinux.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xen/include/acpi/platform/aclinux.h b/xen/include/acpi/platform/aclinux.h index daa2d7e985..239ced2352 100644 --- a/xen/include/acpi/platform/aclinux.h +++ b/xen/include/acpi/platform/aclinux.h @@ -76,8 +76,12 @@ #define acpi_thread_id struct vcpu * -#define ACPI_ALLOCATE(a) xmalloc_bytes(a) -#define ACPI_ALLOCATE_ZEROED(a) xzalloc_bytes(a) -#define ACPI_FREE(a) xfree(a) +void *acpi_os_alloc_memory(size_t); +void *acpi_os_zalloc_memory(size_t); +void acpi_os_free_memory(void *); + +#define ACPI_ALLOCATE(a) acpi_os_alloc_memory(a) +#define ACPI_ALLOCATE_ZEROED(a) acpi_os_zalloc_memory(a) +#define ACPI_FREE(a) acpi_os_free_memory(a) #endif /* __ACLINUX_H__ */ |