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 #include <drivers/bus/FDT.h> 14 15 char *gFDT; 16 17 status_t 18 arch_platform_init(struct kernel_args *kernelArgs) 19 { 20 // NOTE: dprintf() is off-limits here, too early... 21 22 // If we have an FDT blob, point the gFDT to it now 23 gFDT = (char *)kernelArgs->platform_args.fdt; 24 25 return B_OK; 26 } 27 28 status_t 29 arch_platform_init_post_vm(struct kernel_args *kernelArgs) 30 { 31 // no area to create, since we pass the FDT in the kernel_args 32 // and the VM automagically creates the area's (with B_EXACT_ADDRESS) 33 // for them. 34 return B_OK; 35 } 36 37 38 status_t 39 arch_platform_init_post_thread(struct kernel_args *kernelArgs) 40 { 41 // now we can create and use semaphores 42 return B_OK; 43 } 44