/*---------------------------------------------------------------------------* 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: 23869 $ *---------------------------------------------------------------------------*/ //--------------------------------------------------------------------------- #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[]; 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(); }