1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: os_Initialize.cpp 4 5 Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 35649 $ 14 *---------------------------------------------------------------------------*/ 15 16 #include <nn/Result.h> 17 #include <nn/os/os_Initialize.h> 18 #include <nn/os/os_Thread.h> 19 #include <nn/os/os_Memory.h> 20 #include <nn/os/os_WaitableCounter.h> 21 #include <nn/os/os_StackMemory.h> 22 #include <nn/os/os_SharedMemory.h> 23 #include <nn/dbg/dbg_PrintResult.h> 24 25 NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(os) 26 NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(fnd) 27 28 namespace nn { namespace os { 29 Initialize()30void Initialize() 31 { 32 nn::os::WaitableCounter::Initialize(); 33 #if NN_PLATFORM_HAS_MMU 34 nn::os::detail::InitializeSharedMemory(); 35 nn::os::detail::InitializeStackMemory(); 36 #endif // if NN_PLATFORM_HAS_MMU 37 nn::os::detail::InitializeThreadEnvrionment(); 38 NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(os); 39 NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(fnd); 40 } 41 42 }} 43 44 extern "C" { 45 nnosInitialize()46void nnosInitialize() 47 { 48 nn::os::Initialize(); 49 } 50 51 } 52