TwlIPL/include/sysmenu/reloc_info/common/reloc_info.h
yoshida_teruhisa 57a883ac6e libraries_sysmenuにreloc_infoライブラリ追加。
再配置情報関係のデータ定義や関数をそちらに移動。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@384 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2007-12-20 04:09:46 +00:00

61 lines
1.7 KiB
C

/*---------------------------------------------------------------------------*
Project: TwlIPL
File: reloc_info.h
Copyright 2007 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:: 2007-12-12#$
$Rev: 352 $
$Author: yoshida_teruhisa $
*---------------------------------------------------------------------------*/
#ifndef __SYSMENU_RELOC_INFO_H__
#define __SYSMENU_RELOC_INFO_H__
#ifdef __cplusplus
extern "C" {
#endif
//----------------------------------------------------------------------
// データ型定義
//----------------------------------------------------------------------
// 再配置情報データ構造体
typedef struct Relocate_Info
{
u32 src;
u32 dest;
u32 length;
u32 post_clear_addr;
u32 post_clear_length;
BOOL rev;
}Relocate_Info;
// ROMセグメント名
typedef enum RomSegmentName {
ARM9_STATIC = 0,
ARM7_STATIC = 1,
ARM9_LTD_STATIC = 2,
ARM7_LTD_STATIC = 3
}RomSegmentName;
//----------------------------------------------------------------------
// 関数宣言
//----------------------------------------------------------------------
// ロード領域のチェック及び再配置情報の生成
BOOL SYSM_CheckLoadRegionAndSetRelocateInfo( RomSegmentName seg, u32 *dest, u32 length, Relocate_Info *info, BOOL isTwlApp );
#ifdef __cplusplus
}
#endif
#endif // __SYSMENU_RELOC_INFO_H__