1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - include - twl 3 File: section.h 4 5 Copyright 2007-2008 Nintendo. 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 $Date:: 2008-09-17#$ 14 $Rev: 8556 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 #ifndef TWL_SECTION_H_ 18 #define TWL_SECTION_H_ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 25 //-------------------------------------------------------------------------------- 26 // section definition for LCF 27 #if defined(SDK_CW) || defined(SDK_RX) || defined(__MWERKS__) 28 #ifdef SDK_ARM9 29 #pragma define_section ITCM ".itcm" ".itcm.bss" abs32 RWX 30 #pragma define_section DTCM ".dtcm" ".dtcm.bss" abs32 RWX 31 #else 32 #pragma define_section WRAM ".wram" ".wram.bss" abs32 RWX 33 #pragma define_section LTDWRAM ".ltdwram" ".ltdwram.bss" abs32 RWX 34 #ifdef SDK_TWLLTD 35 #pragma define_section RSVWRAM ".rsvwram" ".rsvwram.bss" abs32 RWX 36 #endif // SDK_TWLLTD 37 #endif 38 #pragma define_section PARENT ".parent" abs32 RWX 39 #pragma define_section VERSION ".version" abs32 RWX 40 #pragma define_section LTDMAIN ".ltdmain" ".ltdmain.bss" abs32 RWX 41 #elif defined(SDK_PRODG) 42 // nothing to do 43 #elif defined(SDK_ADS) 44 TO BE DEFINED 45 #elif defined(SDK_GCC) 46 TO BE DEFINED 47 #endif 48 #ifdef __cplusplus 49 } /* extern "C" */ 50 #endif 51 /* NITRO_SECTION_H_ */ 52 #endif 53