/*---------------------------------------------------------------------------* Project: Horizon File: init_StartUp.cpp Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 27849 $ *---------------------------------------------------------------------------*/ //--------------------------------------------------------------------------- #include #include #include #define NN_SYSTEM_DEFAULT_HEAP_SIZE 0x00800000 extern "C" nninitStaticInitFunc Image$$STATIC_INIT$$RO$$Base[]; extern "C" nninitStaticInitFunc Image$$STATIC_INIT$$RO$$Limit[]; #if NN_PLATFORM_HAS_MMU #include namespace nn { namespace applet { namespace CTR { namespace detail { // libnn_applet.a をリンクしていない場合はこちらが nninitSetup() で使用されます __declspec(noinline) Result Initialize( AppletAttr appletAttr ) { return ResultSuccess(); } }}}} #endif extern "C" NN_WEAK_SYMBOL void nninitSystem(void) { // OS ライブラリの初期化 nn::os::Initialize(); } extern "C" NN_WEAK_SYMBOL void nninitStartUp(void) { nninitStartUpDefault(); } extern "C" void nninitCallStaticInitializers(void) { for( nninitStaticInitFunc* f = Image$$STATIC_INIT$$RO$$Base; f < Image$$STATIC_INIT$$RO$$Limit; ++f ) { (*f)(); } } extern "C" NN_WEAK_SYMBOL void nninitSetup(void) { nninitSetupDefault(); #if NN_PLATFORM_HAS_MMU nn::applet::CTR::detail::Initialize(); #endif }