SVNファイル属性設定。

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@53 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
nakasima 2008-12-01 10:32:04 +00:00
parent 37e6235e78
commit f8c5b37b14
84 changed files with 1526 additions and 1513 deletions

View File

@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords: $ # $Rev$
# $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
include $(CTRFIRM_ROOT)/build/buildtools/commondefs include $(CTRFIRM_ROOT)/build/buildtools/commondefs

View File

@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: 2008-12-1#$
# $NoKeywords: $ # $Rev: 53 $
# $Author: nakasima $
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
include $(CTRBROM_ROOT)/build/buildtools/commondefs include $(CTRBROM_ROOT)/build/buildtools/commondefs

View File

@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords: $ # $Rev$
# $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
ifndef BROMSDK_COMMONDEFS_ ifndef BROMSDK_COMMONDEFS_
BROMSDK_COMMONDEFS_ = TRUE BROMSDK_COMMONDEFS_ = TRUE

View File

@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords: $ # $Rev$
# $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
ifndef BROMSDK_MODULERULES_ ifndef BROMSDK_MODULERULES_

View File

@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: 2008-12-1#$
# $NoKeywords: $ # $Rev: 53 $
# $Author: nakasima $
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
include $(CTRBROM_ROOT)/build/buildtools/commondefs include $(CTRBROM_ROOT)/build/buildtools/commondefs

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 46 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
SUBDIRS = SUBDIRS =

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 46 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 46 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 46 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 46 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-11-28#$ # $Date:: $
# $Rev: 41 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
SUBDIRS = SUBDIRS =

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 46 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 46 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 46 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 46 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords: $ # $Rev$
# $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
include $(CTRBROM_ROOT)/build/buildtools/commondefs include $(CTRBROM_ROOT)/build/buildtools/commondefs

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#include <brom/code32.h> #include <brom/code32.h>
#include <brom/os.h> #include <brom/os.h>

View File

@ -10,8 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Log: $ $Date:: $
$NoKeywords: $ $Rev$
$Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
// TWL // TWL

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_H_ #ifndef BROM_H_
#define BROM_H_ #define BROM_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_DEFS_H_ #ifndef BROM_DEFS_H_
#define BROM_DEFS_H_ #define BROM_DEFS_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_C_EXTENSION_H_ #ifndef BROM_C_EXTENSION_H_
#define BROM_C_EXTENSION_H_ #define BROM_C_EXTENSION_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#if defined(SDK_CW) || defined(__MWERKS__) #if defined(SDK_CW) || defined(__MWERKS__)
#pragma thumb on #pragma thumb on

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
// //
// include this instead of using C99 pragma extensions for compatibility // include this instead of using C99 pragma extensions for compatibility

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifdef SDK_CODE_ARM // switch by default codegen #ifdef SDK_CODE_ARM // switch by default codegen
#include <brom/code32.h> #include <brom/code32.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 47 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_HW_ARM11_AXI_WRAM_H_ #ifndef BROM_HW_ARM11_AXI_WRAM_H_
#define BROM_HW_ARM11_AXI_WRAM_H_ #define BROM_HW_ARM11_AXI_WRAM_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 47 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_HW_ARM11_MMAP_BROM_H_ #ifndef BROM_HW_ARM11_MMAP_BROM_H_
#define BROM_HW_ARM11_MMAP_BROM_H_ #define BROM_HW_ARM11_MMAP_BROM_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_HW_ARM9_MMAP_BROM_H_ #ifndef BROM_HW_ARM9_MMAP_BROM_H_
#define BROM_HW_ARM9_MMAP_BROM_H_ #define BROM_HW_ARM9_MMAP_BROM_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-12-1#$ $Date:: $
$Rev: 47 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_HW_ARM9_MMAP_TCM_H_ #ifndef BROM_HW_ARM9_MMAP_TCM_H_
#define BROM_HW_ARM9_MMAP_TCM_H_ #define BROM_HW_ARM9_MMAP_TCM_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_HW_COMMON_MMAP_SHARED_H_ #ifndef BROM_HW_COMMON_MMAP_SHARED_H_
#define BROM_HW_COMMON_MMAP_SHARED_H_ #define BROM_HW_COMMON_MMAP_SHARED_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_INIT_H_ #ifndef BROM_INIT_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_INIT_CRT0_H_ #ifndef BROM_INIT_CRT0_H_
#define BROM_INIT_CRT0_H_ #define BROM_INIT_CRT0_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_MEMORYMAP_H_ #ifndef BROM_MEMORYMAP_H_
#define BROM_MEMORYMAP_H_ #define BROM_MEMORYMAP_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef SDK_ARM9 #ifndef SDK_ARM9
#define SDK_ARM9 #define SDK_ARM9

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_MISC_H_ #ifndef BROM_MISC_H_
#define BROM_MISC_H_ #define BROM_MISC_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_OS_H_ #ifndef BROM_OS_H_

View File

@ -1,105 +1,105 @@
// //
// Scatter Loading Description File Templete // Scatter Loading Description File Templete
// //
#define SDK_ASM #define SDK_ASM
#include <brom/hw/ARM11/mmap_brom.h> #include <brom/hw/ARM11/mmap_brom.h>
LOAD_NORMAL HW_BROM_NML HW_BROM_NML_SIZE LOAD_NORMAL HW_BROM_NML HW_BROM_NML_SIZE
{ {
STUP_ENTRY +0 STUP_ENTRY +0
{ {
*crt0.*o (.emb_text, +FIRST) *crt0.*o (.emb_text, +FIRST)
} }
NML_RO +0 NML_RO +0
{ {
*libos*.brom*.a (:gdef:OSi_Boot) *libos*.brom*.a (:gdef:OSi_Boot)
*libos*.brom*.a (:gdef:OSi_BootCore) *libos*.brom*.a (:gdef:OSi_BootCore)
*libos*.brom*.a (:gdef:OSi_ClearWorkArea) *libos*.brom*.a (:gdef:OSi_ClearWorkArea)
*libos*.brom*.a (:gdef:OS_DisableInterrupts) *libos*.brom*.a (:gdef:OS_DisableInterrupts)
*libos*.brom*.a (:gdef:OS_RestoreInterrupts) *libos*.brom*.a (:gdef:OS_RestoreInterrupts)
*libmi*.brom*.a (+RO) *libmi*.brom*.a (+RO)
*libswi*.brom*.a (+RO) *libswi*.brom*.a (+RO)
*libpxi*.brom*.a (+RO) *libpxi*.brom*.a (+RO)
*libacsign*.brom*.a (+RO) *libacsign*.brom*.a (+RO)
* (Veneer$$Code) * (Veneer$$Code)
} }
RO +0 RO +0
{ {
* (+RO) * (+RO)
} }
} }
LOAD_SECURE HW_BROM_SEC HW_BROM_SEC_SIZE LOAD_SECURE HW_BROM_SEC HW_BROM_SEC_SIZE
{ {
SEC_RO +0 SEC_RO +0
{ {
*crt0_secure_sp.o (.emb_text, +FIRST) *crt0_secure_sp.o (.emb_text, +FIRST)
#ifdef BROM_DEF_LINK_SCATLD #ifdef BROM_DEF_LINK_SCATLD
*crt0scat.*o (.emb_text) *crt0scat.*o (.emb_text)
__main.o (+RO) __main.o (+RO)
* (Region$$Table) * (Region$$Table)
* (ZISection$$$Table) * (ZISection$$$Table)
* (!!!scatter) * (!!!scatter)
* (!!handler_copy) * (!!handler_copy)
* (!!handler_zi) * (!!handler_zi)
* (x$fpl$fpinit) * (x$fpl$fpinit)
#endif // BROM_DEF_LINK_SCATLD #endif // BROM_DEF_LINK_SCATLD
*main.o (+RO) *main.o (+RO)
*libos*.brom*.a (:gdef:OSi_KeyBinPack) *libos*.brom*.a (:gdef:OSi_KeyBinPack)
*libpad*.brom*.a (:gdef:PAD_Read) *libpad*.brom*.a (:gdef:PAD_Read)
*libpad*.brom*.a (:gdef:PAD_DetectFold) *libpad*.brom*.a (:gdef:PAD_DetectFold)
*libmi*.brom*.a (:gdef:MI_Init) *libmi*.brom*.a (:gdef:MI_Init)
*libmi*.brom*.a (:gdef:MI_ReadStream) *libmi*.brom*.a (:gdef:MI_ReadStream)
*libmi*.brom*.a (:gdef:MIi_PreMappingWram) *libmi*.brom*.a (:gdef:MIi_PreMappingWram)
*libmi*.brom*.a (:gdef:MIi_MappingWramForARM9) *libmi*.brom*.a (:gdef:MIi_MappingWramForARM9)
*libmi*.brom*.a (:gdef:MIi_MappingWramForARM7) *libmi*.brom*.a (:gdef:MIi_MappingWramForARM7)
*libmi*.brom*.a (i.MIi_AdjustWramMapParam) *libmi*.brom*.a (i.MIi_AdjustWramMapParam)
*libmi*.brom*.a (:gdef:MIi_SetExDmaArbitration) *libmi*.brom*.a (:gdef:MIi_SetExDmaArbitration)
*libmi*.brom*.a (:gdef:MIi_SetExDmaYieldCycles) *libmi*.brom*.a (:gdef:MIi_SetExDmaYieldCycles)
*libmi*.brom*.a (:gdef:MIi_SetExDmaParams) *libmi*.brom*.a (:gdef:MIi_SetExDmaParams)
*libmi*.brom*.a (:gdef:MIi_ExDmaRecv) *libmi*.brom*.a (:gdef:MIi_ExDmaRecv)
*libmi*.brom*.a (:gdef:MIi_ExDmaRecvCore) *libmi*.brom*.a (:gdef:MIi_ExDmaRecvCore)
*libmi*.brom*.a (:gdef:MIi_ExDmaRecvAsyncCore) *libmi*.brom*.a (:gdef:MIi_ExDmaRecvAsyncCore)
*libmi*.brom*.a (:gdef:MIi_WaitExDma) *libmi*.brom*.a (:gdef:MIi_WaitExDma)
*libmi*.brom*.a (:gdef:MIi_StopExDma) *libmi*.brom*.a (:gdef:MIi_StopExDma)
*libmi*.brom*.a (:gdef:MIi_StopExDmaAsync) *libmi*.brom*.a (:gdef:MIi_StopExDmaAsync)
*libpxi*.brom*.a (:gdef:PXI_InitFifoBROM) *libpxi*.brom*.a (:gdef:PXI_InitFifoBROM)
*libpxi*.brom*.a (:gdef:PXI_SendDataByFifo) *libpxi*.brom*.a (:gdef:PXI_SendDataByFifo)
*libpxi*.brom*.a (:gdef:PXI_RecvDataByFifo) *libpxi*.brom*.a (:gdef:PXI_RecvDataByFifo)
*libpxi*.brom*.a (:gdef:PXI_SendStream) *libpxi*.brom*.a (:gdef:PXI_SendStream)
*libpxi*.brom*.a (:gdef:PXI_RecvStream) *libpxi*.brom*.a (:gdef:PXI_RecvStream)
*libpxi*.brom*.a (:gdef:PXIi_InitReadStream) *libpxi*.brom*.a (:gdef:PXIi_InitReadStream)
*libpxi*.brom*.a (:gdef:PXIi_ReadByteStream) *libpxi*.brom*.a (:gdef:PXIi_ReadByteStream)
*libpxi*.brom*.a (:gdef:PXIi_ReadWordStream) *libpxi*.brom*.a (:gdef:PXIi_ReadWordStream)
*libpxi*.brom*.a (:gdef:PXIi_TerminateReadStream) *libpxi*.brom*.a (:gdef:PXIi_TerminateReadStream)
*libos*.brom*.a (+RO) *libos*.brom*.a (+RO)
*libnvram*.brom*.a (+RO) *libnvram*.brom*.a (+RO)
*libromsd*.brom*.a (+RO) *libromsd*.brom*.a (+RO)
*libgcd*.brom*.a (+RO) *libgcd*.brom*.a (+RO)
*libpm*.brom*.a (+RO) *libpm*.brom*.a (+RO)
*libaes*.brom*.a (+RO) *libaes*.brom*.a (+RO)
} }
RW HW_BROM_WRAM HW_BROM_WRAM_SIZE RW HW_BROM_WRAM HW_BROM_WRAM_SIZE
{ {
* (+RW) * (+RW)
} }
ZI +0 ZI +0
{ {
* (+ZI) * (+ZI)
} }
BUF_OVER_BARRIER HW_BROM_WRAM_END EMPTY 0 BUF_OVER_BARRIER HW_BROM_WRAM_END EMPTY 0
{ {
} }
TO_FIRM HW_BROM_TO_FIRM_BUF EMPTY HW_BROM_TO_FIRM_BUF_SIZE TO_FIRM HW_BROM_TO_FIRM_BUF EMPTY HW_BROM_TO_FIRM_BUF_SIZE
{ {
} }
} }

View File

@ -1,133 +1,133 @@
// //
// Scatter Loading Description File Templete // Scatter Loading Description File Templete
// //
#define SDK_ASM #define SDK_ASM
#include <brom/hw/ARM9/mmap_brom.h> #include <brom/hw/ARM9/mmap_brom.h>
LOAD_NORMAL HW_BROM_NML HW_BROM_NML_SIZE LOAD_NORMAL HW_BROM_NML HW_BROM_NML_SIZE
{ {
STUP_ENTRY +0 STUP_ENTRY +0
{ {
*crt0.*o (.emb_text, +FIRST) *crt0.*o (.emb_text, +FIRST)
} }
NML_RO +0 NML_RO +0
{ {
*libos*.brom*.a (:gdef:OSi_Boot) *libos*.brom*.a (:gdef:OSi_Boot)
*libos*.brom*.a (:gdef:OSi_BootCore) *libos*.brom*.a (:gdef:OSi_BootCore)
*libos*.brom*.a (:gdef:OSi_ClearWorkArea) *libos*.brom*.a (:gdef:OSi_ClearWorkArea)
*libos*.brom*.a (:gdef:OS_DisableInterrupts) *libos*.brom*.a (:gdef:OS_DisableInterrupts)
*libos*.brom*.a (:gdef:OS_RestoreInterrupts) *libos*.brom*.a (:gdef:OS_RestoreInterrupts)
*libmi*.brom*.a (+RO) *libmi*.brom*.a (+RO)
*libswi*.brom*.a (+RO) *libswi*.brom*.a (+RO)
*libpxi*.brom*.a (+RO) *libpxi*.brom*.a (+RO)
*libacsign*.brom*.a (+RO) *libacsign*.brom*.a (+RO)
* (Veneer$$Code) * (Veneer$$Code)
} }
RO +0 RO +0
{ {
* (+RO) * (+RO)
} }
SVC_RW HW_ITCM_END EMPTY 0 SVC_RW HW_ITCM_END EMPTY 0
{ {
} }
#ifndef BROM_DEF_LINK_SCATLD #ifndef BROM_DEF_LINK_SCATLD
DTCM HW_DTCM EMPTY 0 DTCM HW_DTCM EMPTY 0
{ {
} }
#else // BROM_DEF_LINK_SCATLD #else // BROM_DEF_LINK_SCATLD
ITCM (HW_ITCM + 0x100) (HW_ITCM_SIZE - 0x100) ITCM (HW_ITCM + 0x100) (HW_ITCM_SIZE - 0x100)
{ {
* (.itcm) * (.itcm)
* (.itcm.bss) * (.itcm.bss)
} }
DTCM HW_DTCM HW_DTCM_SIZE DTCM HW_DTCM HW_DTCM_SIZE
{ {
* (.dtcm) * (.dtcm)
* (.dtcm.bss) * (.dtcm.bss)
} }
#endif // BROM_DEF_LINK_SCATLD #endif // BROM_DEF_LINK_SCATLD
} }
LOAD_SECURE HW_BROM_SEC HW_BROM_SEC_SIZE LOAD_SECURE HW_BROM_SEC HW_BROM_SEC_SIZE
{ {
SEC_RO +0 SEC_RO +0
{ {
*crt0_secure.o (.emb_text, +FIRST) *crt0_secure.o (.emb_text, +FIRST)
#ifdef BROM_DEF_LINK_SCATLD #ifdef BROM_DEF_LINK_SCATLD
*crt0scat.*o (.emb_text) *crt0scat.*o (.emb_text)
__main.o (+RO) __main.o (+RO)
* (Region$$Table) * (Region$$Table)
* (ZISection$$$Table) * (ZISection$$$Table)
* (!!!scatter) * (!!!scatter)
* (!!handler_copy) * (!!handler_copy)
* (!!handler_zi) * (!!handler_zi)
* (x$fpl$fpinit) * (x$fpl$fpinit)
#endif // BROM_DEF_LINK_SCATLD #endif // BROM_DEF_LINK_SCATLD
*main.o (+RO) *main.o (+RO)
*libos*.brom*.a (:gdef:OSi_KeyBinPack) *libos*.brom*.a (:gdef:OSi_KeyBinPack)
*libpad*.brom*.a (:gdef:PAD_Read) *libpad*.brom*.a (:gdef:PAD_Read)
*libpad*.brom*.a (:gdef:PAD_DetectFold) *libpad*.brom*.a (:gdef:PAD_DetectFold)
*libmi*.brom*.a (:gdef:MI_Init) *libmi*.brom*.a (:gdef:MI_Init)
*libmi*.brom*.a (:gdef:MI_ReadStream) *libmi*.brom*.a (:gdef:MI_ReadStream)
*libmi*.brom*.a (:gdef:MIi_PreMappingWram) *libmi*.brom*.a (:gdef:MIi_PreMappingWram)
*libmi*.brom*.a (:gdef:MIi_MappingWramForARM9) *libmi*.brom*.a (:gdef:MIi_MappingWramForARM9)
*libmi*.brom*.a (:gdef:MIi_MappingWramForARM7) *libmi*.brom*.a (:gdef:MIi_MappingWramForARM7)
*libmi*.brom*.a (i.MIi_AdjustWramMapParam) *libmi*.brom*.a (i.MIi_AdjustWramMapParam)
*libmi*.brom*.a (:gdef:MIi_SetExDmaArbitration) *libmi*.brom*.a (:gdef:MIi_SetExDmaArbitration)
*libmi*.brom*.a (:gdef:MIi_SetExDmaYieldCycles) *libmi*.brom*.a (:gdef:MIi_SetExDmaYieldCycles)
*libmi*.brom*.a (:gdef:MIi_SetExDmaParams) *libmi*.brom*.a (:gdef:MIi_SetExDmaParams)
*libmi*.brom*.a (:gdef:MIi_ExDmaRecv) *libmi*.brom*.a (:gdef:MIi_ExDmaRecv)
*libmi*.brom*.a (:gdef:MIi_ExDmaRecvCore) *libmi*.brom*.a (:gdef:MIi_ExDmaRecvCore)
*libmi*.brom*.a (:gdef:MIi_ExDmaRecvAsyncCore) *libmi*.brom*.a (:gdef:MIi_ExDmaRecvAsyncCore)
*libmi*.brom*.a (:gdef:MIi_WaitExDma) *libmi*.brom*.a (:gdef:MIi_WaitExDma)
*libmi*.brom*.a (:gdef:MIi_StopExDma) *libmi*.brom*.a (:gdef:MIi_StopExDma)
*libmi*.brom*.a (:gdef:MIi_StopExDmaAsync) *libmi*.brom*.a (:gdef:MIi_StopExDmaAsync)
*libpxi*.brom*.a (:gdef:PXI_InitFifoBROM) *libpxi*.brom*.a (:gdef:PXI_InitFifoBROM)
*libpxi*.brom*.a (:gdef:PXI_SendDataByFifo) *libpxi*.brom*.a (:gdef:PXI_SendDataByFifo)
*libpxi*.brom*.a (:gdef:PXI_RecvDataByFifo) *libpxi*.brom*.a (:gdef:PXI_RecvDataByFifo)
*libpxi*.brom*.a (:gdef:PXI_SendStream) *libpxi*.brom*.a (:gdef:PXI_SendStream)
*libpxi*.brom*.a (:gdef:PXI_RecvStream) *libpxi*.brom*.a (:gdef:PXI_RecvStream)
*libpxi*.brom*.a (:gdef:PXIi_InitReadStream) *libpxi*.brom*.a (:gdef:PXIi_InitReadStream)
*libpxi*.brom*.a (:gdef:PXIi_ReadByteStream) *libpxi*.brom*.a (:gdef:PXIi_ReadByteStream)
*libpxi*.brom*.a (:gdef:PXIi_ReadWordStream) *libpxi*.brom*.a (:gdef:PXIi_ReadWordStream)
*libpxi*.brom*.a (:gdef:PXIi_TerminateReadStream) *libpxi*.brom*.a (:gdef:PXIi_TerminateReadStream)
*libos*.brom*.a (+RO) *libos*.brom*.a (+RO)
*libnvram*.brom*.a (+RO) *libnvram*.brom*.a (+RO)
*libromsd*.brom*.a (+RO) *libromsd*.brom*.a (+RO)
*libgcd*.brom*.a (+RO) *libgcd*.brom*.a (+RO)
*libpm*.brom*.a (+RO) *libpm*.brom*.a (+RO)
*libprint_hex*.brom*.a (+RO) *libprint_hex*.brom*.a (+RO)
} }
RW HW_BROM_WRAM HW_BROM_WRAM_SIZE RW HW_BROM_WRAM HW_BROM_WRAM_SIZE
{ {
* (+RW) * (+RW)
} }
ZI +0 ZI +0
{ {
* (+ZI) * (+ZI)
} }
BUF_OVER_BARRIER HW_BROM_WRAM_END EMPTY 0 BUF_OVER_BARRIER HW_BROM_WRAM_END EMPTY 0
{ {
} }
TO_FIRM HW_BROM_TO_FIRM_BUF EMPTY HW_BROM_TO_FIRM_BUF_SIZE TO_FIRM HW_BROM_TO_FIRM_BUF EMPTY HW_BROM_TO_FIRM_BUF_SIZE
{ {
} }
} }

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_SWI_H_ #ifndef BROM_SWI_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef BROM_TYPES_H_ #ifndef BROM_TYPES_H_
#define BROM_TYPES_H_ #define BROM_TYPES_H_

View File

@ -1,9 +1,9 @@
#! make -f #! make -f
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Project: NitroSDK - buildsetup - create register map # Project: CtrFirm - buildsetup - create register map
# File: Makefile # File: Makefile
# #
# Copyright 2003-2004 Nintendo. All rights reserved. # Copyright 2008 Nintendo. All rights reserved.
# #
# These coded instructions, statements, and computer programs contain # These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo # proprietary information of Nintendo of America Inc. and/or Nintendo
@ -11,15 +11,16 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords:$ # $Rev$
# $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
include $(CTRFIRM_ROOT)/build/buildtools/commondefs include $(CTRFIRM_ROOT)/build/buildtools/commondefs
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
ifdef NITRO_PRIVATE ifdef CTR_PRIVATE
SUBDIRS += # versions SUBDIRS += # versions
endif endif

View File

@ -1,6 +1,6 @@
#! make -f #! make -f
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Project: CtrBrom - buildsetup - create register map # Project: CtrFirm - buildsetup - create register map
# File: Makefile # File: Makefile
# #
# Copyright 2008 Nintendo. All rights reserved. # Copyright 2008 Nintendo. All rights reserved.
@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords:$ # $Rev$
# $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
SUBDIRS = SUBDIRS =
@ -46,7 +47,7 @@ LDIRT_CLEAN = $(TARGET_TMPCSV) $(TARGETS) \
$(firstword $(subst /, ,$(WORKDIR))) $(firstword $(subst /, ,$(WORKDIR)))
LDIRT_CLOBBER = LDIRT_CLOBBER =
include $(CTRSDK_ROOT)/build/buildtools/commondefs include $(CTRFIRM_ROOT)/build/buildtools/commondefs
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -59,7 +60,7 @@ $(TARGET): $(CSVSRC) $(SCRIPT)
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
include $(CTRSDK_ROOT)/build/buildtools/modulerules include $(CTRFIRM_ROOT)/build/buildtools/modulerules
#----- End of Makefile ----- #----- End of Makefile -----

7
trunk/build/buildsetup/ioreg/header_generator_ioreg.pl Normal file → Executable file
View File

@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# #
# Project: CtrSDK - header generator - # Project: CtrFirm - header generator -
# File: header_generator_ioreg.pl # File: header_generator_ioreg.pl
# #
# Copyright 2008 Nintendo. All rights reserved. # Copyright 2008 Nintendo. All rights reserved.
@ -13,8 +13,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords: $ # $Rev$
# $Author$
############################################################################## ##############################################################################
# #

View File

@ -1,6 +1,6 @@
#! make -f #! make -f
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Project: CtrBrom - buildsetup - create register map # Project: CtrFirm - buildsetup - create register map
# File: Makefile # File: Makefile
# #
# Copyright 2008 Nintendo. All rights reserved. # Copyright 2008 Nintendo. All rights reserved.
@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords:$ # $Rev$
# $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
WORKDIR = ctr/hw/ARM9 WORKDIR = ctr/hw/ARM9
@ -43,7 +44,7 @@ LDIRT_CLEAN = $(TARGET_TMPCSV) $(TARGETS) \
LDIRT_CLOBBER = LDIRT_CLOBBER =
include $(CTRSDK_ROOT)/build/buildtools/commondefs include $(CTRFIRM_ROOT)/build/buildtools/commondefs
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -57,7 +58,7 @@ $(TARGET): $(CSVSRC) $(SCRIPT)
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
include $(CTRSDK_ROOT)/build/buildtools/modulerules include $(CTRFIRM_ROOT)/build/buildtools/modulerules
#----- End of Makefile ----- #----- End of Makefile -----

View File

@ -2,7 +2,7 @@
############################################################################## ##############################################################################
# #
# Project: CtrSDK - header generator - # Project: CtrFirm - header generator -
# File: header_generator_ioreg.pl # File: header_generator_ioreg.pl
# #
# Copyright 2008 Nintendo. All rights reserved. # Copyright 2008 Nintendo. All rights reserved.
@ -13,8 +13,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords: $ # $Rev$
# $Author$
############################################################################## ##############################################################################
# #

View File

@ -1,6 +1,6 @@
#! make -f #! make -f
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Project: NitroSDK - buildsetup - versions # Project: CtrFirm - buildsetup - versions
# File: Makefile # File: Makefile
# #
# Copyright 2008 Nintendo. All rights reserved. # Copyright 2008 Nintendo. All rights reserved.
@ -11,8 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Log: $ # $Date:: $
# $NoKeywords: $ # $Rev$
# $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
CTR_FORCE_BUILD = True CTR_FORCE_BUILD = True

View File

@ -1,20 +1,20 @@
#ifndef CTRSDK_VERSION_H_ #ifndef CTRSDK_VERSION_H_
#define CTRSDK_VERSION_H_ #define CTRSDK_VERSION_H_
#define SDK_VERSION_DATE 20070704 #define SDK_VERSION_DATE 20070704
#define SDK_VERSION_TIME 1421 #define SDK_VERSION_TIME 1421
#define SDK_VERSION_MAJOR 4 #define SDK_VERSION_MAJOR 4
#define SDK_VERSION_MINOR 0 #define SDK_VERSION_MINOR 0
#define SDK_VERSION_RELSTEP 30000 #define SDK_VERSION_RELSTEP 30000
#define SDK_BUILDVER_CW_CC 3.0 #define SDK_BUILDVER_CW_CC 3.0
#define SDK_BUILDVER_CW_LD 2.0 #define SDK_BUILDVER_CW_LD 2.0
#define SDK_BUILDNUM_CW_CC 123 #define SDK_BUILDNUM_CW_CC 123
#define SDK_BUILDNUM_CW_LD 84 #define SDK_BUILDNUM_CW_LD 84
#ifndef SDK_VERSION_NUMBER #ifndef SDK_VERSION_NUMBER
#define SDK_VERSION_NUMBER(major, minor, relstep) \ #define SDK_VERSION_NUMBER(major, minor, relstep) \
(((major) << 24) | ((minor) << 16) | ((relstep) << 0)) (((major) << 24) | ((minor) << 16) | ((relstep) << 0))
#define SDK_CURRENT_VERSION_NUMBER \ #define SDK_CURRENT_VERSION_NUMBER \
SDK_VERSION_NUMBER(SDK_VERSION_MAJOR, SDK_VERSION_MINOR, SDK_VERSION_RELSTEP) SDK_VERSION_NUMBER(SDK_VERSION_MAJOR, SDK_VERSION_MINOR, SDK_VERSION_RELSTEP)
#endif #endif
#endif #endif

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
CTR_WITH_ARM9 := TRUE CTR_WITH_ARM9 := TRUE

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
CTR_PRIVATE := TRUE CTR_PRIVATE := TRUE

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
ifndef CTRSDK_COMMONDEFS_ ifndef CTRSDK_COMMONDEFS_
CTRSDK_COMMONDEFS_ = TRUE CTRSDK_COMMONDEFS_ = TRUE

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# #

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
EMPTY ?= EMPTY ?=

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
EMPTY ?= EMPTY ?=

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
ifndef CTRSDK_MODULERULES_ ifndef CTRSDK_MODULERULES_

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
ifndef TWLSDK_MODULERULES_ ifndef TWLSDK_MODULERULES_

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
ifndef TWLDLL_MODULERULES_ ifndef TWLDLL_MODULERULES_

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
.PHONY: utest .PHONY: utest

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
AINCLUDE_DIRS = $(LINCLUDES) $(EINCLUDES) $(GINCLUDES) AINCLUDE_DIRS = $(LINCLUDES) $(EINCLUDES) $(GINCLUDES)

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
AINCLUDE_DIRS = $(LINCLUDES) $(EINCLUDES) $(GINCLUDES) # $(RVCT_INCDIRS) AINCLUDE_DIRS = $(LINCLUDES) $(EINCLUDES) $(GINCLUDES) # $(RVCT_INCDIRS)

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------

View File

@ -13,9 +13,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
############################################################################## ##############################################################################
foreach $filename (@ARGV) { foreach $filename (@ARGV) {

View File

@ -10,7 +10,7 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
SUBDIRS = SUBDIRS =

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
SUBDIRS = SUBDIRS =

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
include $(CTRFIRM_ROOT)/build/buildtools/commondefs include $(CTRFIRM_ROOT)/build/buildtools/commondefs

View File

@ -1,3 +1,3 @@
SDK_CW_BUILD_VERSION_CC=3.0 SDK_CW_BUILD_VERSION_CC=3.0
SDK_CW_BUILD_NUMBER_CC=137 SDK_CW_BUILD_NUMBER_CC=137
SDK_CW_BUILD_NUMBER2_CC=13700 SDK_CW_BUILD_NUMBER2_CC=13700

View File

@ -1,3 +1,3 @@
SDK_CW_BUILD_VERSION_LD=2.0 SDK_CW_BUILD_VERSION_LD=2.0
SDK_CW_BUILD_NUMBER_LD=87 SDK_CW_BUILD_NUMBER_LD=87
SDK_CW_BUILD_NUMBER2_LD=8700 SDK_CW_BUILD_NUMBER2_LD=8700

View File

@ -11,9 +11,9 @@
# not be disclosed to third parties or copied or duplicated in any form, # 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. # in whole or in part, without the prior written consent of Nintendo.
# #
# $Date:: 2008-12-1#$ # $Date:: $
# $Rev: 44 $ # $Rev$
# $Author: nakasima $ # $Author$
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
-include $(CTRSDK_ROOT)/include/ctr/version.h -include $(CTRSDK_ROOT)/include/ctr/version.h

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifdef SDK_ARM11 #ifdef SDK_ARM11
#include <ctr/hw/ARM11/arm11_reg.h> #include <ctr/hw/ARM11/arm11_reg.h>

File diff suppressed because it is too large Load Diff

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-27#$ $Date:: $
$Rev: 37 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef CTR_HW_ARM11_MMAP_GLOBAL_H_ #ifndef CTR_HW_ARM11_MMAP_GLOBAL_H_
#define CTR_HW_ARM11_MMAP_GLOBAL_H_ #define CTR_HW_ARM11_MMAP_GLOBAL_H_

View File

@ -1,327 +1,327 @@
/*---------------------------------------------------------------------------* /*---------------------------------------------------------------------------*
Project: CtrFirm - include - ctr - HW - ARM11 Project: CtrFirm - include - ctr - HW - ARM11
File: mmu_table.h File: mmu_table.h
Copyright 2008 Nintendo. All rights reserved. Copyright 2008 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-27#$ $Date:: $
$Rev: 37 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef CTR_HW_ARM11_MMU_TABLE_H_ #ifndef CTR_HW_ARM11_MMU_TABLE_H_
#define CTR_HW_ARM11_MMU_TABLE_H_ #define CTR_HW_ARM11_MMU_TABLE_H_
#ifndef SDK_ASM #ifndef SDK_ASM
#include <ctr/types.h> #include <ctr/types.h>
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
// MMUv6 Table Structure // MMUv6 Table Structure
#ifndef SDK_ASM #ifndef SDK_ASM
typedef struct typedef struct
{ {
u32 sb0_0:1; u32 sb0_0:1;
u32 sb1_1:1; u32 sb1_1:1;
u32 bafferable:1; u32 bafferable:1;
u32 cacheable:1; u32 cacheable:1;
u32 executeNever:1; u32 executeNever:1;
u32 ignored:4; u32 ignored:4;
u32 notifyEcc:1; u32 notifyEcc:1;
u32 permission:2; u32 permission:2;
u32 memoryTypeEx:3; u32 memoryTypeEx:3;
u32 permissionEx:1; u32 permissionEx:1;
u32 shared:1; u32 shared:1;
u32 notGlobal:1; u32 notGlobal:1;
u32 sb1_18:1; u32 sb1_18:1;
u32 sb0_19_23:3; u32 sb0_19_23:3;
u32 base:8; u32 base:8;
} }
OSMMUv6SuperSection, OSMMUv6Section16MB; OSMMUv6SuperSection, OSMMUv6Section16MB;
typedef struct typedef struct
{ {
u32 sb0_0:1; u32 sb0_0:1;
u32 sb1_1:1; u32 sb1_1:1;
u32 bafferable:1; u32 bafferable:1;
u32 cacheable:1; u32 cacheable:1;
u32 executeNever:1; u32 executeNever:1;
u32 domain:4; u32 domain:4;
u32 notifyEcc:1; u32 notifyEcc:1;
u32 permission:2; u32 permission:2;
u32 memoryTypeEx:3; u32 memoryTypeEx:3;
u32 permissionEx:1; u32 permissionEx:1;
u32 shared:1; u32 shared:1;
u32 notGlobal:1; u32 notGlobal:1;
u32 sb0_18_19:2; u32 sb0_18_19:2;
u32 base:12; u32 base:12;
} }
OSMMUv6Section, OSMMUv6Section1MB; OSMMUv6Section, OSMMUv6Section1MB;
typedef struct typedef struct
{ {
u32 sb1_0:1; u32 sb1_0:1;
u32 sb0_1_4:4; u32 sb0_1_4:4;
u32 domain:4; u32 domain:4;
u32 notifyEcc:1; u32 notifyEcc:1;
u32 base:12; u32 base:12;
} }
OSMMUv6CoarsePage; OSMMUv6CoarsePage;
typedef struct typedef struct
{ {
u32 sb1_0:1; u32 sb1_0:1;
u32 sb0_1:1; u32 sb0_1:1;
u32 bafferable:1; u32 bafferable:1;
u32 cacheable:1; u32 cacheable:1;
u32 permission:2; u32 permission:2;
u32 sb0_6_8:3; u32 sb0_6_8:3;
u32 permissionEx:1; u32 permissionEx:1;
u32 shared:1; u32 shared:1;
u32 notGlobal:1; u32 notGlobal:1;
u32 memoryTypeEx:3; u32 memoryTypeEx:3;
u32 executeNever:1; u32 executeNever:1;
u32 base:16; u32 base:16;
} }
OSMMUv6LargePage, OSMMUv6Page64KB; OSMMUv6LargePage, OSMMUv6Page64KB;
typedef struct typedef struct
{ {
u32 executeNever:1; u32 executeNever:1;
u32 sb1_1:1; u32 sb1_1:1;
u32 bafferable:1; u32 bafferable:1;
u32 cacheable:1; u32 cacheable:1;
u32 permission:2; u32 permission:2;
u32 memoryTypeEx:3; u32 memoryTypeEx:3;
u32 permissionEx:1; u32 permissionEx:1;
u32 shared:1; u32 shared:1;
u32 notGlobal:1; u32 notGlobal:1;
u32 base:20; u32 base:20;
} }
OSMMUv6SmallPage, OSMMUv6Page4KB; OSMMUv6SmallPage, OSMMUv6Page4KB;
#endif // SDK_ASM #endif // SDK_ASM
// MMUv6 Table Formats // MMUv6 Table Formats
// Supersection // Supersection
#ifndef SDK_ASM #ifndef SDK_ASM
#define HW_MMU6_T1_SUSEC_PACK( paddr, apx, rgt, nglobal, sh, xn ) \ #define HW_MMU6_T1_SUSEC_PACK( paddr, apx, rgt, nglobal, sh, xn ) \
\ \
( ((paddr) & HW_MMU6_T1_SUSEC_BASE_MASK) \ ( ((paddr) & HW_MMU6_T1_SUSEC_BASE_MASK) \
| ((apx) << HW_MMU6_T1_APX_SFT) \ | ((apx) << HW_MMU6_T1_APX_SFT) \
| ((rgt) << HW_MMU6_T1_RGT_SFT) \ | ((rgt) << HW_MMU6_T1_RGT_SFT) \
| ((nglobal) ? HW_MMU6_T1_NGLOBAL : 0) \ | ((nglobal) ? HW_MMU6_T1_NGLOBAL : 0) \
| ((sh) ? HW_MMU6_T1_SHARED : 0) \ | ((sh) ? HW_MMU6_T1_SHARED : 0) \
| ((xn) ? HW_MMU6_T1_XN : 0) \ | ((xn) ? HW_MMU6_T1_XN : 0) \
| HW_MMU6_T1_SUSEC_SB1 ) | HW_MMU6_T1_SUSEC_SB1 )
#endif #endif
#define HW_MMU6_T1_SUSEC_SB1 0x00040002 // Should be 1 #define HW_MMU6_T1_SUSEC_SB1 0x00040002 // Should be 1
#define HW_MMU6_T1_SUSEC_BASE_MASK 0xff000000 // Base address (per 16MB) #define HW_MMU6_T1_SUSEC_BASE_MASK 0xff000000 // Base address (per 16MB)
#define HW_MMU6_T1_SUSEC_BASE_SFT 24 #define HW_MMU6_T1_SUSEC_BASE_SFT 24
#define HW_MMU6_T1_SUSEC_SIZE 0x01000000 #define HW_MMU6_T1_SUSEC_SIZE 0x01000000
#define HW_MMU6_T1_SUSEC_ALIAS_SIZE 0x00100000 #define HW_MMU6_T1_SUSEC_ALIAS_SIZE 0x00100000
// Section // Section
#ifndef SDK_ASM #ifndef SDK_ASM
#define HW_MMU6_T1_SEC_PACK( paddr, apx, rgt, nglobal, sh, xn, domain ) \ #define HW_MMU6_T1_SEC_PACK( paddr, apx, rgt, nglobal, sh, xn, domain ) \
\ \
( ((paddr) & HW_MMU6_T1_SEC_BASE_MASK) \ ( ((paddr) & HW_MMU6_T1_SEC_BASE_MASK) \
| ((apx) << HW_MMU6_T1_APX_SFT) \ | ((apx) << HW_MMU6_T1_APX_SFT) \
| ((rgt) << HW_MMU6_T1_RGT_SFT) \ | ((rgt) << HW_MMU6_T1_RGT_SFT) \
| ((nglobal) ? HW_MMU6_T1_NGLOBAL : 0) \ | ((nglobal) ? HW_MMU6_T1_NGLOBAL : 0) \
| ((sh) ? HW_MMU6_T1_SHARED : 0) \ | ((sh) ? HW_MMU6_T1_SHARED : 0) \
| ((xn) ? HW_MMU6_T1_XN : 0) \ | ((xn) ? HW_MMU6_T1_XN : 0) \
| ((domain) << HW_MMU6_T1_DOMAIN_SFT) \ | ((domain) << HW_MMU6_T1_DOMAIN_SFT) \
| HW_MMU6_T1_SEC_SB1 ) | HW_MMU6_T1_SEC_SB1 )
#endif #endif
#define HW_MMU6_T1_SEC_SB1 0x00000002 // Should be 1 #define HW_MMU6_T1_SEC_SB1 0x00000002 // Should be 1
#define HW_MMU6_T1_SEC_BASE_MASK 0xfff00000 // Base address (per 1MB) #define HW_MMU6_T1_SEC_BASE_MASK 0xfff00000 // Base address (per 1MB)
#define HW_MMU6_T1_SEC_BASE_SFT 20 #define HW_MMU6_T1_SEC_BASE_SFT 20
#define HW_MMU6_T1_SEC_SIZE 0x00100000 #define HW_MMU6_T1_SEC_SIZE 0x00100000
// Coarse page table // Coarse page table
#ifndef SDK_ASM #ifndef SDK_ASM
#define HW_MMU6_T1_COURSE_PACK( paddr, domain ) \ #define HW_MMU6_T1_COURSE_PACK( paddr, domain ) \
\ \
( ((paddr) & HW_MMU6_T1_CORS_MASK) \ ( ((paddr) & HW_MMU6_T1_CORS_MASK) \
| ((domain) << HW_MMU6_T1_DOMAIN_SFT) \ | ((domain) << HW_MMU6_T1_DOMAIN_SFT) \
| HW_MMU6_T1_CORS_SB1 ) | HW_MMU6_T1_CORS_SB1 )
#endif #endif
#define HW_MMU6_T1_CORS_SB1 0x00000001 // Should be 1 #define HW_MMU6_T1_CORS_SB1 0x00000001 // Should be 1
#define HW_MMU6_T1_CORS_MASK 0xfffffc00 // Coarse page table address (per 1KB) #define HW_MMU6_T1_CORS_MASK 0xfffffc00 // Coarse page table address (per 1KB)
#define HW_MMU6_T1_CORS_SFT 12 #define HW_MMU6_T1_CORS_SFT 12
#define HW_MMU6_T1_CORS_SIZE 0x00000400 #define HW_MMU6_T1_CORS_SIZE 0x00000400
// Supersection/Section/Coarse Common // Supersection/Section/Coarse Common
#define HW_MMU6_T1_ECC_E 0x00000200 // ECC enable #define HW_MMU6_T1_ECC_E 0x00000200 // ECC enable
// Section/Coarse Common // Section/Coarse Common
#define HW_MMU6_T1_DOMAIN_MASK 0x000001e0 // Domain #define HW_MMU6_T1_DOMAIN_MASK 0x000001e0 // Domain
#define HW_MMU6_T1_DOMAIN_SFT 5 #define HW_MMU6_T1_DOMAIN_SFT 5
// Supersection/Section Common // Supersection/Section Common
#define HW_MMU6_T1_NGLOBAL 0x00020000 // Not Global (at subpages disabled) #define HW_MMU6_T1_NGLOBAL 0x00020000 // Not Global (at subpages disabled)
#define HW_MMU6_T1_GLOBAL 0x00000000 // Global #define HW_MMU6_T1_GLOBAL 0x00000000 // Global
#define HW_MMU6_T1_ASID_ENABLE HW_MMU6_T1_NGLOBAL #define HW_MMU6_T1_ASID_ENABLE HW_MMU6_T1_NGLOBAL
#define HW_MMU6_T1_SHARED 0x00010000 // Shared (Normal region only, at subpages disabled) #define HW_MMU6_T1_SHARED 0x00010000 // Shared (Normal region only, at subpages disabled)
#define HW_MMU6_T1_APX_MASK 0x00008c00 // Access Permissions Extension (at subpages disabled) #define HW_MMU6_T1_APX_MASK 0x00008c00 // Access Permissions Extension (at subpages disabled)
#define HW_MMU6_T1_XN 0x00000010 // Execute Never (at subpages disabled) #define HW_MMU6_T1_XN 0x00000010 // Execute Never (at subpages disabled)
#define HW_MMU6_T1_RGT_MASK 0x0000700c // Region Type #define HW_MMU6_T1_RGT_MASK 0x0000700c // Region Type
#define HW_MMU6_T1_APX_SFT 10 #define HW_MMU6_T1_APX_SFT 10
#define HW_MMU6_T1_RGT_SFT 2 #define HW_MMU6_T1_RGT_SFT 2
#define HW_MMU6_T1_APX_NA HW_MMU6_APX_NA #define HW_MMU6_T1_APX_NA HW_MMU6_APX_NA
#define HW_MMU6_T1_APX_S_RW_U_NA HW_MMU6_APX_S_RW_U_NA #define HW_MMU6_T1_APX_S_RW_U_NA HW_MMU6_APX_S_RW_U_NA
#define HW_MMU6_T1_APX_S_RW_U_RO HW_MMU6_APX_S_RW_U_RO #define HW_MMU6_T1_APX_S_RW_U_RO HW_MMU6_APX_S_RW_U_RO
#define HW_MMU6_T1_APX_ALL HW_MMU6_APX_ALL #define HW_MMU6_T1_APX_ALL HW_MMU6_APX_ALL
#define HW_MMU6_T1_APX_S_RO_U_NA HW_MMU6_APX_S_RO_U_NA #define HW_MMU6_T1_APX_S_RO_U_NA HW_MMU6_APX_S_RO_U_NA
#define HW_MMU6_T1_APX_S_RO_U_RO HW_MMU6_APX_S_RO_U_RO #define HW_MMU6_T1_APX_S_RO_U_RO HW_MMU6_APX_S_RO_U_RO
#define HW_MMU6_T1_RGT_STRONG_ORDER 0x0000 // Strongly Ordered, regardless of the S bit in the page table #define HW_MMU6_T1_RGT_STRONG_ORDER 0x0000 // Strongly Ordered, regardless of the S bit in the page table
#define HW_MMU6_T1_RGT_SHARED_DEV 0x0001 // Shared Device, regardless of the S bit in the page table #define HW_MMU6_T1_RGT_SHARED_DEV 0x0001 // Shared Device, regardless of the S bit in the page table
#define HW_MMU6_T1_RGT_NSHARED_DEV 0x0800 // Non-Shared Device, regardless of the S bit in the page table #define HW_MMU6_T1_RGT_NSHARED_DEV 0x0800 // Non-Shared Device, regardless of the S bit in the page table
#define HW_MMU6_T1_RGT_L1C_NC_NB 0x1000 // L1C Noncachable, Unbuffered #define HW_MMU6_T1_RGT_L1C_NC_NB 0x1000 // L1C Noncachable, Unbuffered
#define HW_MMU6_T1_RGT_L1C_WB_WA 0x1001 // L1C Write-back Write-allocate, Buffered #define HW_MMU6_T1_RGT_L1C_WB_WA 0x1001 // L1C Write-back Write-allocate, Buffered
#define HW_MMU6_T1_RGT_L1L2C_NC 0x0400 // L1C and L2C Noncachable #define HW_MMU6_T1_RGT_L1L2C_NC 0x0400 // L1C and L2C Noncachable
#define HW_MMU6_T1_RGT_L1L2C_WB_WA 0x0403 // L1C and L2C Write-Back, Allocate on Write #define HW_MMU6_T1_RGT_L1L2C_WB_WA 0x0403 // L1C and L2C Write-Back, Allocate on Write
// MMUv6 L2 Table Formats // MMUv6 L2 Table Formats
// Large page // Large page
#ifndef SDK_ASM #ifndef SDK_ASM
#define HW_MMU6_T2_LP_PACK( paddr, apx, rgt, nglobal, sh, xn ) \ #define HW_MMU6_T2_LP_PACK( paddr, apx, rgt, nglobal, sh, xn ) \
\ \
( ((paddr) & HW_MMU6_T2_LP_BASE_MASK) \ ( ((paddr) & HW_MMU6_T2_LP_BASE_MASK) \
| ((apx) << HW_MMU6_T2_APX_SFT) \ | ((apx) << HW_MMU6_T2_APX_SFT) \
| ((rgt) << HW_MMU6_T2_LP_RGT_SFT) \ | ((rgt) << HW_MMU6_T2_LP_RGT_SFT) \
| ((nglobal) ? HW_MMU6_T2_NGLOBAL : 0) \ | ((nglobal) ? HW_MMU6_T2_NGLOBAL : 0) \
| ((sh) ? HW_MMU6_T2_SHARED : 0) \ | ((sh) ? HW_MMU6_T2_SHARED : 0) \
| ((xn) ? HW_MMU6_T2_LP_XN : 0) \ | ((xn) ? HW_MMU6_T2_LP_XN : 0) \
| HW_MMU6_T2_LP_SB1 ) | HW_MMU6_T2_LP_SB1 )
#endif #endif
#define HW_MMU6_T2_LP_SB1 0x00000001 // Should be 1 #define HW_MMU6_T2_LP_SB1 0x00000001 // Should be 1
#define HW_MMU6_T2_LP_BASE_MASK 0xffff0000 // Base address (per 64KB) #define HW_MMU6_T2_LP_BASE_MASK 0xffff0000 // Base address (per 64KB)
#define HW_MMU6_T2_LP_XN 0x00008000 // Execute Never (at subpages disabled) #define HW_MMU6_T2_LP_XN 0x00008000 // Execute Never (at subpages disabled)
#define HW_MMU6_T2_LP_RGT_MASK 0x0000700c // Region Type #define HW_MMU6_T2_LP_RGT_MASK 0x0000700c // Region Type
#define HW_MMU6_T2_LP_BASE_SFT 16 #define HW_MMU6_T2_LP_BASE_SFT 16
#define HW_MMU6_T2_LP_RGT_SFT 2 #define HW_MMU6_T2_LP_RGT_SFT 2
#define HW_MMU6_T2_LP_RGT_STRONG_ORDER HW_MMU6_T1_RGT_STRONG_ORDER #define HW_MMU6_T2_LP_RGT_STRONG_ORDER HW_MMU6_T1_RGT_STRONG_ORDER
#define HW_MMU6_T2_LP_RGT_SHARED_DEV HW_MMU6_T1_RGT_SHARED_DEV #define HW_MMU6_T2_LP_RGT_SHARED_DEV HW_MMU6_T1_RGT_SHARED_DEV
#define HW_MMU6_T2_LP_RGT_NSHARED_DEV HW_MMU6_T1_RGT_NSHARED_DEV #define HW_MMU6_T2_LP_RGT_NSHARED_DEV HW_MMU6_T1_RGT_NSHARED_DEV
#define HW_MMU6_T2_LP_RGT_L1C_NC_NB HW_MMU6_T1_RGT_L1C_NC_NB #define HW_MMU6_T2_LP_RGT_L1C_NC_NB HW_MMU6_T1_RGT_L1C_NC_NB
#define HW_MMU6_T2_LP_RGT_L1C_WB_WA HW_MMU6_T1_RGT_L1C_WB_WA #define HW_MMU6_T2_LP_RGT_L1C_WB_WA HW_MMU6_T1_RGT_L1C_WB_WA
#define HW_MMU6_T2_LP_RGT_L1L2C_NC HW_MMU6_T1_RGT_L1L2C_NC #define HW_MMU6_T2_LP_RGT_L1L2C_NC HW_MMU6_T1_RGT_L1L2C_NC
#define HW_MMU6_T2_LP_RGT_L1L2C_WB_WA HW_MMU6_T1_RGT_L1L2C_WB_WA #define HW_MMU6_T2_LP_RGT_L1L2C_WB_WA HW_MMU6_T1_RGT_L1L2C_WB_WA
#define HW_MMU6_T2_LP_SIZE 0x00010000 #define HW_MMU6_T2_LP_SIZE 0x00010000
#define HW_MMU6_T2_LP_ALIAS_SIZE 0x00001000 #define HW_MMU6_T2_LP_ALIAS_SIZE 0x00001000
// Small page // Small page
#ifndef SDK_ASM #ifndef SDK_ASM
#define HW_MMU6_T2_SP_PACK( paddr, apx, rgt, nglobal, sh, xn ) \ #define HW_MMU6_T2_SP_PACK( paddr, apx, rgt, nglobal, sh, xn ) \
\ \
( ((paddr) & HW_MMU6_T2_SP_BASE_MASK) \ ( ((paddr) & HW_MMU6_T2_SP_BASE_MASK) \
| ((apx) << HW_MMU6_T2_APX_SFT) \ | ((apx) << HW_MMU6_T2_APX_SFT) \
| ((rgt) << HW_MMU6_T2_SP_RGT_SFT) \ | ((rgt) << HW_MMU6_T2_SP_RGT_SFT) \
| ((nglobal) ? HW_MMU6_T2_NGLOBAL : 0) \ | ((nglobal) ? HW_MMU6_T2_NGLOBAL : 0) \
| ((sh) ? HW_MMU6_T2_SHARED : 0) \ | ((sh) ? HW_MMU6_T2_SHARED : 0) \
| ((xn) ? HW_MMU6_T2_SP_XN : 0) \ | ((xn) ? HW_MMU6_T2_SP_XN : 0) \
| HW_MMU6_T2_SP_SB1 ) | HW_MMU6_T2_SP_SB1 )
#endif #endif
#define HW_MMU6_T2_SP_SB1 0x00000002 // Should be 1 #define HW_MMU6_T2_SP_SB1 0x00000002 // Should be 1
#define HW_MMU6_T2_SP_BASE_MASK 0xfffff000 // Base address (per 4KB) #define HW_MMU6_T2_SP_BASE_MASK 0xfffff000 // Base address (per 4KB)
#define HW_MMU6_T2_SP_XN 0x00000001 // Execute Never (at subpages disabled) #define HW_MMU6_T2_SP_XN 0x00000001 // Execute Never (at subpages disabled)
#define HW_MMU6_T2_SP_RGT_MASK 0x000001cc // Region Type #define HW_MMU6_T2_SP_RGT_MASK 0x000001cc // Region Type
#define HW_MMU6_T2_SP_BASE_SFT 12 #define HW_MMU6_T2_SP_BASE_SFT 12
#define HW_MMU6_T2_SP_RGT_SFT 2 #define HW_MMU6_T2_SP_RGT_SFT 2
#define HW_MMU6_T2_SP_RGT_STRONG_ORDER 0x00 // Strongly Ordered, regardless of the S bit in the page table #define HW_MMU6_T2_SP_RGT_STRONG_ORDER 0x00 // Strongly Ordered, regardless of the S bit in the page table
#define HW_MMU6_T2_SP_RGT_SHARED_DEV 0x01 // Shared Device, regardless of the S bit in the page table #define HW_MMU6_T2_SP_RGT_SHARED_DEV 0x01 // Shared Device, regardless of the S bit in the page table
#define HW_MMU6_T2_SP_RGT_NSHARED_DEV 0x20 // Non-Shared Device, regardless of the S bit in the page table #define HW_MMU6_T2_SP_RGT_NSHARED_DEV 0x20 // Non-Shared Device, regardless of the S bit in the page table
#define HW_MMU6_T2_SP_RGT_L1C_NC_NB 0x40 // L1C Noncachable, Unbuffered #define HW_MMU6_T2_SP_RGT_L1C_NC_NB 0x40 // L1C Noncachable, Unbuffered
#define HW_MMU6_T2_SP_RGT_L1C_WB_WA 0x41 // L1C Write-back Write-allocate, Buffered #define HW_MMU6_T2_SP_RGT_L1C_WB_WA 0x41 // L1C Write-back Write-allocate, Buffered
#define HW_MMU6_T2_SP_RGT_L1L2C_NC 0x10 // L1C and L2C Noncachable #define HW_MMU6_T2_SP_RGT_L1L2C_NC 0x10 // L1C and L2C Noncachable
#define HW_MMU6_T2_SP_RGT_L1L2C_WB_WA 0x13 // L1C and L2C Write-Back, Allocate on Write #define HW_MMU6_T2_SP_RGT_L1L2C_WB_WA 0x13 // L1C and L2C Write-Back, Allocate on Write
#define HW_MMU6_T2_SP_SIZE 0x00001000 #define HW_MMU6_T2_SP_SIZE 0x00001000
// LargePage/SmallPage Common // LargePage/SmallPage Common
#define HW_MMU6_T2_NGLOBAL 0x00000800 // Not Global (at subpages disabled) #define HW_MMU6_T2_NGLOBAL 0x00000800 // Not Global (at subpages disabled)
#define HW_MMU6_T2_GLOBAL 0x00000000 // Global #define HW_MMU6_T2_GLOBAL 0x00000000 // Global
#define HW_MMU6_T2_ASID_ENABLE HW_MMU6_T2_NGLOBAL #define HW_MMU6_T2_ASID_ENABLE HW_MMU6_T2_NGLOBAL
#define HW_MMU6_T2_SHARED 0x00000400 // Shared (Normal region only, at subpages disabled) #define HW_MMU6_T2_SHARED 0x00000400 // Shared (Normal region only, at subpages disabled)
#define HW_MMU6_T2_APX_MASK 0x00000230 // Access Permissions Extension (at subpages disabled) #define HW_MMU6_T2_APX_MASK 0x00000230 // Access Permissions Extension (at subpages disabled)
#define HW_MMU6_T2_APX_SFT 4 #define HW_MMU6_T2_APX_SFT 4
#define HW_MMU6_T2_APX_NA HW_MMU6_APX_NA #define HW_MMU6_T2_APX_NA HW_MMU6_APX_NA
#define HW_MMU6_T2_APX_S_RW_U_NA HW_MMU6_APX_S_RW_U_NA #define HW_MMU6_T2_APX_S_RW_U_NA HW_MMU6_APX_S_RW_U_NA
#define HW_MMU6_T2_APX_S_RW_U_RO HW_MMU6_APX_S_RW_U_RO #define HW_MMU6_T2_APX_S_RW_U_RO HW_MMU6_APX_S_RW_U_RO
#define HW_MMU6_T2_APX_ALL HW_MMU6_APX_ALL #define HW_MMU6_T2_APX_ALL HW_MMU6_APX_ALL
#define HW_MMU6_T2_APX_S_RO_U_NA HW_MMU6_APX_S_RO_U_NA #define HW_MMU6_T2_APX_S_RO_U_NA HW_MMU6_APX_S_RO_U_NA
#define HW_MMU6_T2_APX_S_RO_U_RO HW_MMU6_APX_S_RO_U_RO #define HW_MMU6_T2_APX_S_RO_U_RO HW_MMU6_APX_S_RO_U_RO
// Supersection/Section/Coarse/LargePage/SmallPage Common // Supersection/Section/Coarse/LargePage/SmallPage Common
#define HW_MMU6_APX_NA 0x00 // Access denied #define HW_MMU6_APX_NA 0x00 // Access denied
#define HW_MMU6_APX_S_RW_U_NA 0x01 // Supervisor access only #define HW_MMU6_APX_S_RW_U_NA 0x01 // Supervisor access only
#define HW_MMU6_APX_S_RW_U_RO 0x02 // Supervisor full access, User read only #define HW_MMU6_APX_S_RW_U_RO 0x02 // Supervisor full access, User read only
#define HW_MMU6_APX_ALL 0x03 // Full access #define HW_MMU6_APX_ALL 0x03 // Full access
#define HW_MMU6_APX_S_RO_U_NA 0x21 // Supervisor read only #define HW_MMU6_APX_S_RO_U_NA 0x21 // Supervisor read only
#define HW_MMU6_APX_S_RO_U_RO 0x23 // Supervisor/User read only #define HW_MMU6_APX_S_RO_U_RO 0x23 // Supervisor/User read only
#define HW_MMU6_CBA_NC_NB 0 // Noncachable, Unbuffered #define HW_MMU6_CBA_NC_NB 0 // Noncachable, Unbuffered
#define HW_MMU6_CBA_WB_WA 1 // Write-back Write-allocate, Buffered #define HW_MMU6_CBA_WB_WA 1 // Write-back Write-allocate, Buffered
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif #endif
// CTR_HW_ARM11_MMU_TABLE_H_ // CTR_HW_ARM11_MMU_TABLE_H_
#endif #endif

View File

@ -1,104 +1,104 @@
/*---------------------------------------------------------------------------* /*---------------------------------------------------------------------------*
Project: CtrFirm - include - ctr - HW - ARM11 Project: CtrFirm - include - ctr - HW - ARM11
File: vfp.h File: vfp.h
Copyright 2008 Nintendo. All rights reserved. Copyright 2008 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-27#$ $Date:: $
$Rev: 37 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef CTR_HW_ARM11_VFP_H_ #ifndef CTR_HW_ARM11_VFP_H_
#define CTR_HW_ARM11_VFP_H_ #define CTR_HW_ARM11_VFP_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// VFP Control Registers // VFP Control Registers
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Floating-Point Exception Register // Floating-Point Exception Register
#define HW_FPEXC_EXCEPTION_STATE 0x80000000 // in exception state #define HW_FPEXC_EXCEPTION_STATE 0x80000000 // in exception state
#define HW_FPEXC_VFP_ENABLE 0x40000000 // VFP enable #define HW_FPEXC_VFP_ENABLE 0x40000000 // VFP enable
#define HW_FPEXC_FPINST2_VALID 0x10000000 // FPINST2 instruction valid flag #define HW_FPEXC_FPINST2_VALID 0x10000000 // FPINST2 instruction valid flag
#define HW_FPEXC_VEC_ITR_MASK 0x00000700 // Vector iteration count #define HW_FPEXC_VEC_ITR_MASK 0x00000700 // Vector iteration count
#define HW_FPEXC_INPUT_EXCEPTION 0x00000080 // Input exception flag #define HW_FPEXC_INPUT_EXCEPTION 0x00000080 // Input exception flag
#define HW_FPEXC_POTENT_UNDERFLOW 0x00000008 // Potential underflow flag #define HW_FPEXC_POTENT_UNDERFLOW 0x00000008 // Potential underflow flag
#define HW_FPEXC_POTENT_OVERFLOW 0x00000004 // Potential overflow flag #define HW_FPEXC_POTENT_OVERFLOW 0x00000004 // Potential overflow flag
#define HW_FPEXC_POTENT_INVALID 0x00000001 // Potential invalid operation flag #define HW_FPEXC_POTENT_INVALID 0x00000001 // Potential invalid operation flag
#define HW_FPEXC_VEC_ITR_SFT 8 #define HW_FPEXC_VEC_ITR_SFT 8
// Floating-Point Status and Control Register // Floating-Point Status and Control Register
#define HW_FPSCR_N_FLAG 0x80000000 // Negative/Less than flag #define HW_FPSCR_N_FLAG 0x80000000 // Negative/Less than flag
#define HW_FPSCR_Z_FLAG 0x40000000 // Zero flag #define HW_FPSCR_Z_FLAG 0x40000000 // Zero flag
#define HW_FPSCR_C_FLAG 0x20000000 // Carry/Borrow/Extend flag #define HW_FPSCR_C_FLAG 0x20000000 // Carry/Borrow/Extend flag
#define HW_FPSCR_V_FLAG 0x10000000 // Overflow flag #define HW_FPSCR_V_FLAG 0x10000000 // Overflow flag
#define HW_FPSCR_DEFAULT_NAN_MODE 0x02000000 // Default NaN mode (for std mode & fast mode) #define HW_FPSCR_DEFAULT_NAN_MODE 0x02000000 // Default NaN mode (for std mode & fast mode)
#define HW_FPSCR_FLASH_TO_ZERO_MODE 0x01000000 // Flush-to-zero mode (for std mode & fast mode) #define HW_FPSCR_FLASH_TO_ZERO_MODE 0x01000000 // Flush-to-zero mode (for std mode & fast mode)
#define HW_FPSCR_ROUND_MODE_MASK 0x00c00000 // Rounding mode #define HW_FPSCR_ROUND_MODE_MASK 0x00c00000 // Rounding mode
#define HW_FPSCR_VEC_STRIDE_MASK 0x00300000 // Vector stride #define HW_FPSCR_VEC_STRIDE_MASK 0x00300000 // Vector stride
#define HW_FPSCR_VEC_LENGTH_MASK 0x00070000 // Vector length #define HW_FPSCR_VEC_LENGTH_MASK 0x00070000 // Vector length
#define HW_FPSCR_IDE_ENABLE 0x00008000 // Input Subnormal exception enable #define HW_FPSCR_IDE_ENABLE 0x00008000 // Input Subnormal exception enable
#define HW_FPSCR_IXE_ENABLE 0x00001000 // Inexact exception enable #define HW_FPSCR_IXE_ENABLE 0x00001000 // Inexact exception enable
#define HW_FPSCR_UFE_ENABLE 0x00000800 // Underflow exception enable #define HW_FPSCR_UFE_ENABLE 0x00000800 // Underflow exception enable
#define HW_FPSCR_OFE_ENABLE 0x00000400 // Overflow exception enable #define HW_FPSCR_OFE_ENABLE 0x00000400 // Overflow exception enable
#define HW_FPSCR_DZE_ENABLE 0x00000200 // Division by Zero exception enable #define HW_FPSCR_DZE_ENABLE 0x00000200 // Division by Zero exception enable
#define HW_FPSCR_IOE_ENABLE 0x00000100 // Invalid Operation exception enable #define HW_FPSCR_IOE_ENABLE 0x00000100 // Invalid Operation exception enable
#define HW_FPSCR_IDC 0x00000080 // Input Subnormal cumulative flag #define HW_FPSCR_IDC 0x00000080 // Input Subnormal cumulative flag
#define HW_FPSCR_IXC 0x00000010 // Inexact cumulative flag #define HW_FPSCR_IXC 0x00000010 // Inexact cumulative flag
#define HW_FPSCR_UFC 0x00000008 // Underflow cumulative flag #define HW_FPSCR_UFC 0x00000008 // Underflow cumulative flag
#define HW_FPSCR_OFC 0x00000004 // Overflow cumulative flag #define HW_FPSCR_OFC 0x00000004 // Overflow cumulative flag
#define HW_FPSCR_DZC 0x00000002 // Division by Zero cumulative flag #define HW_FPSCR_DZC 0x00000002 // Division by Zero cumulative flag
#define HW_FPSCR_IOC 0x00000001 // Invalid Operation cumulative flag #define HW_FPSCR_IOC 0x00000001 // Invalid Operation cumulative flag
#define HW_FPSCR_ROUND_MODE_SFT 22 #define HW_FPSCR_ROUND_MODE_SFT 22
#define HW_FPSCR_VEC_STRIDE_SFT 20 #define HW_FPSCR_VEC_STRIDE_SFT 20
#define HW_FPSCR_VEC_LENGTH_SFT 16 #define HW_FPSCR_VEC_LENGTH_SFT 16
#define HW_FPSCR_ROUND_NEAR_MODE 0 // Round to nearest mode #define HW_FPSCR_ROUND_NEAR_MODE 0 // Round to nearest mode
#define HW_FPSCR_ROUND_PLUS_MODE 1 // Round towards plus infinity mode #define HW_FPSCR_ROUND_PLUS_MODE 1 // Round towards plus infinity mode
#define HW_FPSCR_ROUND_MINUS_MODE 2 // Round towards minus infinity mode #define HW_FPSCR_ROUND_MINUS_MODE 2 // Round towards minus infinity mode
#define HW_FPSCR_ROUND_ZERO_MODE 3 // Round towards zero mode #define HW_FPSCR_ROUND_ZERO_MODE 3 // Round towards zero mode
#define HW_FPSCR_VEC_STRIDE_1 0 // Vector stride 1 #define HW_FPSCR_VEC_STRIDE_1 0 // Vector stride 1
#define HW_FPSCR_VEC_STRIDE_2 3 // Vector stride 2 #define HW_FPSCR_VEC_STRIDE_2 3 // Vector stride 2
#define HW_FPSCR_VEC_LENGTH_1 0 // Vector length 1 #define HW_FPSCR_VEC_LENGTH_1 0 // Vector length 1
#define HW_FPSCR_VEC_LENGTH_2 1 // Vector length 2 #define HW_FPSCR_VEC_LENGTH_2 1 // Vector length 2
#define HW_FPSCR_VEC_LENGTH_3 2 // Vector length 3 #define HW_FPSCR_VEC_LENGTH_3 2 // Vector length 3
#define HW_FPSCR_VEC_LENGTH_4 3 // Vector length 4 #define HW_FPSCR_VEC_LENGTH_4 3 // Vector length 4
#define HW_FPSCR_VEC_LENGTH_5 4 // Vector length 5 #define HW_FPSCR_VEC_LENGTH_5 4 // Vector length 5
#define HW_FPSCR_VEC_LENGTH_6 5 // Vector length 6 #define HW_FPSCR_VEC_LENGTH_6 5 // Vector length 6
#define HW_FPSCR_VEC_LENGTH_7 6 // Vector length 7 #define HW_FPSCR_VEC_LENGTH_7 6 // Vector length 7
#define HW_FPSCR_VEC_LENGTH_8 7 // Vector length 8 #define HW_FPSCR_VEC_LENGTH_8 7 // Vector length 8
// Floating-Point Instruction Register // Floating-Point Instruction Register
// Floating-Point Instruction Register 2 // Floating-Point Instruction Register 2
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif #endif
// CTR_HW_ARM11_VFP_H_ // CTR_HW_ARM11_VFP_H_
#endif #endif

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 42 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef CTR_HW_ARM9_REG_H_ #ifndef CTR_HW_ARM9_REG_H_
#define CTR_HW_ARM9_REG_H_ #define CTR_HW_ARM9_REG_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef CTR_HW_ARM9_MMAP_GLOBAL_H_ #ifndef CTR_HW_ARM9_MMAP_GLOBAL_H_
#define CTR_HW_ARM9_MMAP_GLOBAL_H_ #define CTR_HW_ARM9_MMAP_GLOBAL_H_

View File

@ -1,74 +1,74 @@
/*---------------------------------------------------------------------------* /*---------------------------------------------------------------------------*
Project: CtrFirm - include - ctr - HW - common Project: CtrFirm - include - ctr - HW - common
File: arm_reg_common.h File: arm_reg_common.h
Copyright 2008 Nintendo. All rights reserved. Copyright 2008 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-27#$ $Date:: $
$Rev: 37 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef CTR_HW_COMMON_ARM_REG_COMMON_H_ #ifndef CTR_HW_COMMON_ARM_REG_COMMON_H_
#define CTR_HW_COMMON_ARM_REG_COMMON_H_ #define CTR_HW_COMMON_ARM_REG_COMMON_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Program Status Register // Program Status Register
//---------------------------------------------------------------------- //----------------------------------------------------------------------
#define HW_PSR_CPU_MODE_MASK 0x1f // CPU mode #define HW_PSR_CPU_MODE_MASK 0x1f // CPU mode
#define HW_PSR_USR_MODE 0x10 // User mode #define HW_PSR_USR_MODE 0x10 // User mode
#define HW_PSR_FIQ_MODE 0x11 // FIQ mode #define HW_PSR_FIQ_MODE 0x11 // FIQ mode
#define HW_PSR_IRQ_MODE 0x12 // IRQ mode #define HW_PSR_IRQ_MODE 0x12 // IRQ mode
#define HW_PSR_SVC_MODE 0x13 // Supervisor mode #define HW_PSR_SVC_MODE 0x13 // Supervisor mode
#define HW_PSR_ABORT_MODE 0x17 // Abort mode (prefetch/Data) #define HW_PSR_ABORT_MODE 0x17 // Abort mode (prefetch/Data)
#define HW_PSR_UNDEF_MODE 0x1b // Undefined instruction mode #define HW_PSR_UNDEF_MODE 0x1b // Undefined instruction mode
#define HW_PSR_SYS_MODE 0x1f // System mode #define HW_PSR_SYS_MODE 0x1f // System mode
#define HW_PSR_ARM_STATE 0x0 // ARM state #define HW_PSR_ARM_STATE 0x0 // ARM state
#define HW_PSR_THUMB_STATE 0x20 // Thumb state #define HW_PSR_THUMB_STATE 0x20 // Thumb state
#define HW_PSR_FIQ_DISABLE 0x40 // FIQ Disable #define HW_PSR_FIQ_DISABLE 0x40 // FIQ Disable
#define HW_PSR_IRQ_DISABLE 0x80 // IRQ Disable #define HW_PSR_IRQ_DISABLE 0x80 // IRQ Disable
#define HW_PSR_IRQ_FIQ_DISABLE 0xc0 // IRQ & FIQ Disable #define HW_PSR_IRQ_FIQ_DISABLE 0xc0 // IRQ & FIQ Disable
#ifdef SDK_ARM9 #ifdef SDK_ARM9
#else // SDK_ARM11 #else // SDK_ARM11
#define HW_PSR_IMPRECISE_ABORT 0x00000100 // Imprecise Abort #define HW_PSR_IMPRECISE_ABORT 0x00000100 // Imprecise Abort
#define HW_PSR_DATA_LITTLE_ENDIAN 0x00000000 // Data Little Endian #define HW_PSR_DATA_LITTLE_ENDIAN 0x00000000 // Data Little Endian
#define HW_PSR_DATA_BIG_ENDIAN 0x00000200 // Data Big Endian #define HW_PSR_DATA_BIG_ENDIAN 0x00000200 // Data Big Endian
#define HW_PSR_SIMD_GE0 0x00010000 // SIMD greater-than-or-equal #define HW_PSR_SIMD_GE0 0x00010000 // SIMD greater-than-or-equal
#define HW_PSR_SIMD_GE1 0x00020000 #define HW_PSR_SIMD_GE1 0x00020000
#define HW_PSR_SIMD_GE2 0x00040000 #define HW_PSR_SIMD_GE2 0x00040000
#define HW_PSR_SIMD_GE3 0x00080000 #define HW_PSR_SIMD_GE3 0x00080000
#define HW_PSR_JAVA_STATE 0x01000000 // JAVA state #define HW_PSR_JAVA_STATE 0x01000000 // JAVA state
#endif // SDK_ARM11 #endif // SDK_ARM11
#define HW_PSR_Q_FLAG 0x08000000 // Sticky Overflow (Q) flag #define HW_PSR_Q_FLAG 0x08000000 // Sticky Overflow (Q) flag
#define HW_PSR_V_FLAG 0x10000000 // Overflow flag #define HW_PSR_V_FLAG 0x10000000 // Overflow flag
#define HW_PSR_C_FLAG 0x20000000 // Carry/Borrow/Extend flag #define HW_PSR_C_FLAG 0x20000000 // Carry/Borrow/Extend flag
#define HW_PSR_Z_FLAG 0x40000000 // Zero flag #define HW_PSR_Z_FLAG 0x40000000 // Zero flag
#define HW_PSR_N_FLAG 0x80000000 // Negative/Less than flag #define HW_PSR_N_FLAG 0x80000000 // Negative/Less than flag
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif #endif
// CTR_HW_COMMON_ARM_REG_COMMON_H_ // CTR_HW_COMMON_ARM_REG_COMMON_H_
#endif #endif

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifdef SDK_ARM11 #ifdef SDK_ARM11
#include <ctr/hw/ARM11/ioreg.h> #include <ctr/hw/ARM11/ioreg.h>

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef CTR_MISC_H_ #ifndef CTR_MISC_H_
#define CTR_MISC_H_ #define CTR_MISC_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 42 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef FIRM_OS_SVC_ID_H_ #ifndef FIRM_OS_SVC_ID_H_
#define FIRM_OS_SVC_ID_H_ #define FIRM_OS_SVC_ID_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef CTR_TYPES_H_ #ifndef CTR_TYPES_H_
#define CTR_TYPES_H_ #define CTR_TYPES_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef FIRM_HW_ARM11_MMAP_FIRM_H_ #ifndef FIRM_HW_ARM11_MMAP_FIRM_H_
#define FIRM_HW_ARM11_MMAP_FIRM_H_ #define FIRM_HW_ARM11_MMAP_FIRM_H_

View File

@ -10,9 +10,9 @@
not be disclosed to third parties or copied or duplicated in any form, 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. in whole or in part, without the prior written consent of Nintendo.
$Date:: 2008-11-28#$ $Date:: $
$Rev: 41 $ $Rev$
$Author: nakasima $ $Author$
*---------------------------------------------------------------------------*/ *---------------------------------------------------------------------------*/
#ifndef FIRM_HW_ARM9_MMAP_FIRM_H_ #ifndef FIRM_HW_ARM9_MMAP_FIRM_H_
#define FIRM_HW_ARM9_MMAP_FIRM_H_ #define FIRM_HW_ARM9_MMAP_FIRM_H_

View File

@ -1,17 +1,17 @@
#!/usr/bin/bash #!/usr/bin/bash
#---------------------------------------------------------------- #----------------------------------------------------------------
# This script is not for execute directly. # This script is not for execute directly.
# Please use 'source ./setup'. # Please use 'source ./setup'.
#---------------------------------------------------------------- #----------------------------------------------------------------
export CTRFIRM_ROOT=`cygpath -m $PWD` export CTRFIRM_ROOT=`cygpath -m $PWD`
export CTRBROM_ROOT=$CTRFIRM_ROOT/bootrom export CTRBROM_ROOT=$CTRFIRM_ROOT/bootrom
export CTRSDK_ROOT=$CTRFIRM_ROOT export CTRSDK_ROOT=$CTRFIRM_ROOT
export CYGPATH_NOCMD='TRUE' export CYGPATH_NOCMD='TRUE'
echo "Set CTRFIRM_ROOT: $CTRFIRM_ROOT" echo "Set CTRFIRM_ROOT: $CTRFIRM_ROOT"
echo "Set CTRBROM_ROOT: $CTRBROM_ROOT" echo "Set CTRBROM_ROOT: $CTRBROM_ROOT"
echo "Set CTRSDK_ROOT: $CTRSDK_ROOT" echo "Set CTRSDK_ROOT: $CTRSDK_ROOT"
echo "Set CYGPATH_NOCMD: $CYGPATH_NOCMD" echo "Set CYGPATH_NOCMD: $CYGPATH_NOCMD"