1/*
2 * Copyright 2006, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Ingo Weinhold <bonefish@cs.tu-berlin.de>
7 *		Axel D��rfler, axeld@pinc-software.de
8 */
9
10
11#include <arch/platform.h>
12#include <apm.h>
13#include <boot_item.h>
14#include <boot/stage2.h>
15
16
17status_t
18arch_platform_init(struct kernel_args *args)
19{
20	return B_OK;
21}
22
23
24status_t
25arch_platform_init_post_vm(struct kernel_args *args)
26{
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*));
30
31	return B_OK;
32}
33
34
35status_t
36arch_platform_init_post_thread(struct kernel_args *args)
37{
38	// APM is not supported on x86_64.
39#ifndef __x86_64__
40	apm_init(args);
41#endif
42	return B_OK;
43}
44
45