mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-10-31 07:51:08 -04:00
PROM用ソースの共通化。
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@175 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
parent
dcde0e5dbf
commit
763d90dc7b
@ -29,7 +29,6 @@ TARGET_BIN = twl_bootrom.exo
|
|||||||
CRT0_O =
|
CRT0_O =
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
crt0.c \
|
|
||||||
|
|
||||||
#SRCDIR = # using default
|
#SRCDIR = # using default
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|||||||
@ -29,7 +29,6 @@ TARGET_BIN = twl_bootrom.exo
|
|||||||
CRT0_O =
|
CRT0_O =
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
crt0.c \
|
|
||||||
|
|
||||||
#SRCDIR = # using default
|
#SRCDIR = # using default
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Project: CtrBrom - bootrom - init
|
|
||||||
File: crt0.c
|
|
||||||
|
|
||||||
Copyright 2008 Nintendo. All rights reserved.
|
|
||||||
|
|
||||||
These coded instructions, statements, and computer programs contain
|
|
||||||
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
||||||
Company Ltd., and are protected by Federal copyright law. They may
|
|
||||||
not be disclosed to third parties or copied or duplicated in any form,
|
|
||||||
in whole or in part, without the prior written consent of Nintendo.
|
|
||||||
|
|
||||||
$Date:: $
|
|
||||||
$Rev$
|
|
||||||
$Author$
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
#include <brom/code32.h>
|
|
||||||
#include <brom/types.h>
|
|
||||||
#include <brom/hw/common/mmap_prom.h>
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Name: _start
|
|
||||||
|
|
||||||
Description: Start up
|
|
||||||
|
|
||||||
Arguments: None
|
|
||||||
|
|
||||||
Returns: None.
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
asm void _start( void )
|
|
||||||
{
|
|
||||||
PRESERVE8
|
|
||||||
|
|
||||||
EXPORT CTR_BROM_ARM11
|
|
||||||
EXPORT CTR_BROM_ARM9
|
|
||||||
|
|
||||||
CTR_BROM_ARM11
|
|
||||||
INCBIN BROM_PADBIN_ARM11
|
|
||||||
CTR_BROM_ARM9
|
|
||||||
INCBIN BROM_PADBIN_ARM9
|
|
||||||
}
|
|
||||||
@ -29,7 +29,6 @@ TARGET_BIN = jtag_only.exo
|
|||||||
CRT0_O =
|
CRT0_O =
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
crt0.c \
|
|
||||||
|
|
||||||
#SRCDIR = # using default
|
#SRCDIR = # using default
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Project: CtrBrom - bootrom - init
|
|
||||||
File: crt0.c
|
|
||||||
|
|
||||||
Copyright 2008 Nintendo. All rights reserved.
|
|
||||||
|
|
||||||
These coded instructions, statements, and computer programs contain
|
|
||||||
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
||||||
Company Ltd., and are protected by Federal copyright law. They may
|
|
||||||
not be disclosed to third parties or copied or duplicated in any form,
|
|
||||||
in whole or in part, without the prior written consent of Nintendo.
|
|
||||||
|
|
||||||
$Date:: $
|
|
||||||
$Rev$
|
|
||||||
$Author$
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
#include <brom/code32.h>
|
|
||||||
#include <brom/types.h>
|
|
||||||
#include <brom/hw/common/mmap_prom.h>
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Name: _start
|
|
||||||
|
|
||||||
Description: Start up
|
|
||||||
|
|
||||||
Arguments: None
|
|
||||||
|
|
||||||
Returns: None.
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
asm void _start( void )
|
|
||||||
{
|
|
||||||
PRESERVE8
|
|
||||||
|
|
||||||
EXPORT CTR_BROM_ARM11
|
|
||||||
EXPORT CTR_BROM_ARM9
|
|
||||||
|
|
||||||
CTR_BROM_ARM11
|
|
||||||
INCBIN BROM_PADBIN_ARM11
|
|
||||||
CTR_BROM_ARM9
|
|
||||||
INCBIN BROM_PADBIN_ARM9
|
|
||||||
}
|
|
||||||
@ -29,7 +29,6 @@ TARGET_BIN = twl_bootrom.exo
|
|||||||
CRT0_O =
|
CRT0_O =
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
crt0.c \
|
|
||||||
|
|
||||||
#SRCDIR = # using default
|
#SRCDIR = # using default
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Project: CtrBrom - bootrom - init
|
|
||||||
File: crt0.c
|
|
||||||
|
|
||||||
Copyright 2008 Nintendo. All rights reserved.
|
|
||||||
|
|
||||||
These coded instructions, statements, and computer programs contain
|
|
||||||
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
||||||
Company Ltd., and are protected by Federal copyright law. They may
|
|
||||||
not be disclosed to third parties or copied or duplicated in any form,
|
|
||||||
in whole or in part, without the prior written consent of Nintendo.
|
|
||||||
|
|
||||||
$Date:: $
|
|
||||||
$Rev$
|
|
||||||
$Author$
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
#include <brom/code32.h>
|
|
||||||
#include <brom/types.h>
|
|
||||||
#include <brom/hw/common/mmap_prom.h>
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Name: _start
|
|
||||||
|
|
||||||
Description: Start up
|
|
||||||
|
|
||||||
Arguments: None
|
|
||||||
|
|
||||||
Returns: None.
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
asm void _start( void )
|
|
||||||
{
|
|
||||||
PRESERVE8
|
|
||||||
|
|
||||||
EXPORT CTR_BROM_ARM11
|
|
||||||
EXPORT CTR_BROM_ARM9
|
|
||||||
|
|
||||||
CTR_BROM_ARM11
|
|
||||||
INCBIN BROM_PADBIN_ARM11
|
|
||||||
CTR_BROM_ARM9
|
|
||||||
INCBIN BROM_PADBIN_ARM9
|
|
||||||
}
|
|
||||||
@ -29,7 +29,6 @@ TARGET_BIN = thread.exo
|
|||||||
CRT0_O =
|
CRT0_O =
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
crt0.c \
|
|
||||||
|
|
||||||
#SRCDIR = # using default
|
#SRCDIR = # using default
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Project: CtrBrom - bootrom - init
|
|
||||||
File: crt0.c
|
|
||||||
|
|
||||||
Copyright 2008 Nintendo. All rights reserved.
|
|
||||||
|
|
||||||
These coded instructions, statements, and computer programs contain
|
|
||||||
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
||||||
Company Ltd., and are protected by Federal copyright law. They may
|
|
||||||
not be disclosed to third parties or copied or duplicated in any form,
|
|
||||||
in whole or in part, without the prior written consent of Nintendo.
|
|
||||||
|
|
||||||
$Date:: $
|
|
||||||
$Rev$
|
|
||||||
$Author$
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
#include <brom/code32.h>
|
|
||||||
#include <brom/types.h>
|
|
||||||
#include <brom/hw/common/mmap_prom.h>
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Name: _start
|
|
||||||
|
|
||||||
Description: Start up
|
|
||||||
|
|
||||||
Arguments: None
|
|
||||||
|
|
||||||
Returns: None.
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
asm void _start( void )
|
|
||||||
{
|
|
||||||
PRESERVE8
|
|
||||||
|
|
||||||
EXPORT CTR_BROM_ARM11
|
|
||||||
EXPORT CTR_BROM_ARM9
|
|
||||||
|
|
||||||
CTR_BROM_ARM11
|
|
||||||
INCBIN BROM_PADBIN_ARM11
|
|
||||||
CTR_BROM_ARM9
|
|
||||||
INCBIN BROM_PADBIN_ARM9
|
|
||||||
}
|
|
||||||
@ -55,11 +55,14 @@ void proc1(void *arg)
|
|||||||
#endif
|
#endif
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
osPrintf( "Thread1: (%x)\n", (u32)arg );
|
osPrintf( "Thread1: (%x)\n", (u32)arg );
|
||||||
// 1回目のみVFP例外発生
|
// 1回目のみVFP例外発生
|
||||||
f0+=f1;
|
f0+=f1;
|
||||||
|
i = f0;
|
||||||
// osVSNPrintf は %f 非サポート
|
// osVSNPrintf は %f 非サポート
|
||||||
osPrintf( "Thread1: %f\n", f0 );
|
osPrintf( "Thread1: f0 = %d\n", i );
|
||||||
osSleepThread( NULL );
|
osSleepThread( NULL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,6 @@ TARGET_BIN = twl_bootrom.exo
|
|||||||
CRT0_O =
|
CRT0_O =
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
crt0.c \
|
|
||||||
|
|
||||||
#SRCDIR = # using default
|
#SRCDIR = # using default
|
||||||
#LCFILE = # using default
|
#LCFILE = # using default
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Project: CtrBrom - bootrom - init
|
|
||||||
File: crt0.c
|
|
||||||
|
|
||||||
Copyright 2008 Nintendo. All rights reserved.
|
|
||||||
|
|
||||||
These coded instructions, statements, and computer programs contain
|
|
||||||
proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
||||||
Company Ltd., and are protected by Federal copyright law. They may
|
|
||||||
not be disclosed to third parties or copied or duplicated in any form,
|
|
||||||
in whole or in part, without the prior written consent of Nintendo.
|
|
||||||
|
|
||||||
$Date:: $
|
|
||||||
$Rev$
|
|
||||||
$Author$
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
#include <brom/code32.h>
|
|
||||||
#include <brom/types.h>
|
|
||||||
#include <brom/hw/common/mmap_prom.h>
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
|
||||||
Name: _start
|
|
||||||
|
|
||||||
Description: Start up
|
|
||||||
|
|
||||||
Arguments: None
|
|
||||||
|
|
||||||
Returns: None.
|
|
||||||
*---------------------------------------------------------------------------*/
|
|
||||||
asm void _start( void )
|
|
||||||
{
|
|
||||||
PRESERVE8
|
|
||||||
|
|
||||||
EXPORT CTR_BROM_ARM11
|
|
||||||
EXPORT CTR_BROM_ARM9
|
|
||||||
|
|
||||||
CTR_BROM_ARM11
|
|
||||||
INCBIN BROM_PADBIN_ARM11
|
|
||||||
CTR_BROM_ARM9
|
|
||||||
INCBIN BROM_PADBIN_ARM9
|
|
||||||
}
|
|
||||||
@ -229,6 +229,13 @@ CTR_BUILDARCH ?= $(BROM_BUILDARCH)
|
|||||||
|
|
||||||
### Compiler & Linker settings
|
### Compiler & Linker settings
|
||||||
|
|
||||||
|
BROM_PROM_SRCDIR ?= $(BROM_ROOT)/build/libraries/prom
|
||||||
|
BROM_PROM_SRC ?= prom_crt0.c
|
||||||
|
ifeq ($(BROM_PROMGEN),TRUE)
|
||||||
|
SRCDIR += $(BROM_PROM_SRCDIR)
|
||||||
|
SRCS += $(BROM_PROM_SRC)
|
||||||
|
endif
|
||||||
|
|
||||||
# replace NitroSDK
|
# replace NitroSDK
|
||||||
LCFILE_TEMPLATE = $(DEFAULT_BROM_LCFILE_TEMPLATE)
|
LCFILE_TEMPLATE = $(DEFAULT_BROM_LCFILE_TEMPLATE)
|
||||||
LCFILE_TEMPLATE_RV = $(shell cygpath -m $(DEFAULT_BROM_LCFILE_TEMPLATE))
|
LCFILE_TEMPLATE_RV = $(shell cygpath -m $(DEFAULT_BROM_LCFILE_TEMPLATE))
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
/*---------------------------------------------------------------------------*
|
||||||
Project: CtrBrom - bootrom - init
|
Project: CtrBrom - libraries - PROM
|
||||||
File: crt0.c
|
File: prom_crt0.c
|
||||||
|
|
||||||
Copyright 2008 Nintendo. All rights reserved.
|
Copyright 2009 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
|
||||||
@ -30,7 +30,7 @@ extern "C" {
|
|||||||
|
|
||||||
//---- offset in system reserved area
|
//---- offset in system reserved area
|
||||||
#ifdef SDK_ARM11
|
#ifdef SDK_ARM11
|
||||||
// FCRAMまで命令プリフェッチしないように注意(MPCoreは8段パイプライン)
|
// FCRAMまで命令プリフェッチしないように配置(MPCoreは8段パイプライン)
|
||||||
#define HW_AXI_WRAM_SYSRV_OFS_INTR_VENEER 0x00
|
#define HW_AXI_WRAM_SYSRV_OFS_INTR_VENEER 0x00
|
||||||
#define HW_AXI_WRAM_SYSRV_OFS_FIQ_VENEER 0x08
|
#define HW_AXI_WRAM_SYSRV_OFS_FIQ_VENEER 0x08
|
||||||
#define HW_AXI_WRAM_SYSRV_OFS_SWI_VENEER 0x10
|
#define HW_AXI_WRAM_SYSRV_OFS_SWI_VENEER 0x10
|
||||||
@ -38,8 +38,8 @@ extern "C" {
|
|||||||
#define HW_AXI_WRAM_SYSRV_OFS_IABT_VENEER 0x20
|
#define HW_AXI_WRAM_SYSRV_OFS_IABT_VENEER 0x20
|
||||||
#define HW_AXI_WRAM_SYSRV_OFS_DABT_VENEER 0x28
|
#define HW_AXI_WRAM_SYSRV_OFS_DABT_VENEER 0x28
|
||||||
#endif // SDK_ARM11
|
#endif // SDK_ARM11
|
||||||
#define HW_AXI_WRAM_SYSRV_INIT_LOCK_BUF 0x30
|
#define HW_AXI_WRAM_SYSRV_INIT_LOCK_BUF 0x30 // for firmware
|
||||||
#define HW_AXI_WRAM_SYSRV_CARD_LOCK_BUF 0x34
|
#define HW_AXI_WRAM_SYSRV_CARD_LOCK_BUF 0x34 // for firmware
|
||||||
#ifdef SDK_ARM11
|
#ifdef SDK_ARM11
|
||||||
#define HW_AXI_WRAM_SYSRV_OFS_START_VECTOR1 0x3c
|
#define HW_AXI_WRAM_SYSRV_OFS_START_VECTOR1 0x3c
|
||||||
#define HW_AXI_WRAM_SYSRV_OFS_INTR_CHECK1 0x40
|
#define HW_AXI_WRAM_SYSRV_OFS_INTR_CHECK1 0x40
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user