1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: os_Initialize.cpp 4 5 Copyright (C)2009-2012 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: 47384 $ 14 *---------------------------------------------------------------------------*/ 15 16 #include <nn/Result.h> 17 #include <nn/os.h> 18 #include <nn/os/os_Private.h> 19 20 NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(os) 21 NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(fnd) 22 23 namespace nn { namespace os { 24 Initialize()25void Initialize() 26 { 27 nn::os::WaitableCounter::Initialize(); 28 #if NN_PLATFORM_HAS_MMU 29 nn::os::detail::SaveThreadLocalRegionAddress(); 30 nn::os::detail::InitializeSharedMemory(); 31 nn::os::detail::InitializeStackMemory(); 32 #endif // if NN_PLATFORM_HAS_MMU 33 nn::os::detail::InitializeThreadEnvrionment(); 34 NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(os); 35 NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(fnd); 36 } 37 38 }} 39 40 extern "C" { 41 nnosInitialize()42void nnosInitialize() 43 { 44 nn::os::Initialize(); 45 } 46 47 } 48