/*---------------------------------------------------------------------------*
  Project:  TwlSDK - include - twl
  File:     section.h

  Copyright 2007-2008 Nintendo.  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.

  $Date:: 2008-09-17#$
  $Rev: 8556 $
  $Author: okubata_ryoma $
 *---------------------------------------------------------------------------*/
#ifndef TWL_SECTION_H_
#define TWL_SECTION_H_

#ifdef __cplusplus
extern "C" {
#endif


//--------------------------------------------------------------------------------
//       section definition for LCF
#if     defined(SDK_CW) || defined(SDK_RX) || defined(__MWERKS__)
#ifdef SDK_ARM9
#pragma define_section ITCM ".itcm" ".itcm.bss" abs32 RWX
#pragma define_section DTCM ".dtcm" ".dtcm.bss" abs32 RWX
#else
#pragma define_section WRAM ".wram" ".wram.bss" abs32 RWX
#pragma define_section LTDWRAM ".ltdwram" ".ltdwram.bss" abs32 RWX
#ifdef SDK_TWLLTD
#pragma define_section RSVWRAM ".rsvwram" ".rsvwram.bss" abs32 RWX
#endif // SDK_TWLLTD
#endif
#pragma define_section PARENT ".parent" abs32 RWX
#pragma define_section VERSION ".version" abs32 RWX
#pragma define_section LTDMAIN ".ltdmain" ".ltdmain.bss" abs32 RWX
#elif   defined(SDK_PRODG)
// nothing to do
#elif	defined(SDK_ADS)
TO BE   DEFINED
#elif	defined(SDK_GCC)
TO BE   DEFINED
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
/* NITRO_SECTION_H_ */
#endif
