xref: /haiku/src/system/kernel/arch/arm/arch_platform.cpp (revision 610f99c838cb661ff85377789ffd3ad4ff672a08)
1 /*
2  * Copyright 2007, François Revol, revol@free.fr.
3  * Distributed under the terms of the MIT License.
4  *
5  * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
6  * All rights reserved. Distributed under the terms of the MIT License.
7  */
8 
9 #include <KernelExport.h>
10 #include <arch/platform.h>
11 #include <boot/kernel_args.h>
12 
13 
14 void* gFDT = NULL;
15 
16 
17 status_t
18 arch_platform_init(struct kernel_args *kernelArgs)
19 {
20 	gFDT = kernelArgs->arch_args.fdt;
21 	return B_OK;
22 }
23 
24 status_t
25 arch_platform_init_post_vm(struct kernel_args *kernelArgs)
26 {
27 	// no area to create, since we pass the FDT in the kernel_args
28 	// and the VM automagically creates the area's (with B_EXACT_ADDRESS)
29 	// for them.
30 	return B_OK;
31 }
32 
33 
34 status_t
35 arch_platform_init_post_thread(struct kernel_args *kernelArgs)
36 {
37 	// now we can create and use semaphores
38 	return B_OK;
39 }
40