TwlIPL/include/sysmenu/reloc_info/common/reloc_info.h
yoshida_teruhisa 38c6572c6e SDK4555にてアプリジャンプ関係を隠蔽したため、それに伴う修正
メモリロード済みアプリへのジャンプが無くなったので、そのために用意していた再配置情報の処理を削除

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@834 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-03-06 06:22:41 +00:00

64 lines
1.8 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*---------------------------------------------------------------------------*
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:: $
$Rev$
$Author$
*---------------------------------------------------------------------------*/
#ifndef __SYSMENU_RELOC_INFO_H__
#define __SYSMENU_RELOC_INFO_H__
#ifdef __cplusplus
extern "C" {
#endif
//----------------------------------------------------------------------
// データ型定義
//----------------------------------------------------------------------
#define RELOCATE_INFO_NUM 4 // ROM再配置情報の数今のところarm9,arm7それぞれltdとflxで最大4つ
#define DEST_LIST_NUM (RELOCATE_INFO_NUM + 1)
// 再配置情報データ構造体
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__