xref: /haiku/src/system/kernel/arch/x86/arch_platform.cpp (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
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 
17 status_t
18 arch_platform_init(struct kernel_args *args)
19 {
20 	return B_OK;
21 }
22 
23 
24 status_t
25 arch_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 
35 status_t
36 arch_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