btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / system / kernel / arch / x86 / arch_platform.cpp
blobac15e227df0a32984a228a0d721128cba24b7291
1 /*
2 * Copyright 2006, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Ingo Weinhold <bonefish@cs.tu-berlin.de>
7 * Axel Dörfler, axeld@pinc-software.de
8 */
11 #include <arch/platform.h>
12 #include <apm.h>
13 #include <boot_item.h>
14 #include <boot/stage2.h>
17 status_t
18 arch_platform_init(struct kernel_args *args)
20 return B_OK;
24 status_t
25 arch_platform_init_post_vm(struct kernel_args *args)
27 // Now we can add boot items; pass on the ACPI root pointer
28 add_boot_item("ACPI_ROOT_POINTER",
29 args->arch_args.acpi_root.Pointer(), sizeof(void*));
31 return B_OK;
35 status_t
36 arch_platform_init_post_thread(struct kernel_args *args)
38 // APM is not supported on x86_64.
39 #ifndef __x86_64__
40 apm_init(args);
41 #endif
42 return B_OK;