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: 17431 $ 14 *---------------------------------------------------------------------------*/ 15 16 #include <nn/Result.h> 17 #include <nn/os/os_Initialize.h> 18 #include <nn/os/os_Memory.h> 19 #include <nn/os/os_WaitableCounter.h> 20 #include <nn/os/os_StackMemory.h> 21 #include <nn/os/os_SharedMemory.h> 22 #include <nn/dbg/dbg_PrintResult.h> 23 24 NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(os) 25 NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(fnd) 26 27 namespace nn { namespace os { 28 Initialize()29void Initialize() 30 { 31 nn::os::WaitableCounter::Initialize(); 32 #if NN_PLATFORM_HAS_MMU 33 detail::InitializeSharedMemory(); 34 detail::InitializeStackMemory(); 35 #endif // if NN_PLATFORM_HAS_MMU 36 NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(os); 37 NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(fnd); 38 } 39 40 }} 41 42 extern "C" { 43 nnosInitialize()44void nnosInitialize() 45 { 46 nn::os::Initialize(); 47 } 48 49 } 50