PROM生成時に各crt0.cをタッチしていたため共通化をロールバック。

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@177 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
nakasima 2009-01-16 08:02:48 +00:00
parent 9cc1d6266e
commit c3f8acfc48
13 changed files with 253 additions and 1 deletions

View File

@ -29,6 +29,7 @@ TARGET_BIN = twl_bootrom.exo
CRT0_O =
SRCS = \
crt0.c \
#SRCDIR = # using default
#LCFILE = # using default

View File

@ -0,0 +1,41 @@
/*---------------------------------------------------------------------------*
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
}

View File

@ -29,6 +29,7 @@ TARGET_BIN = twl_bootrom.exo
CRT0_O =
SRCS = \
crt0.c \
#SRCDIR = # using default
#LCFILE = # using default

View File

@ -0,0 +1,41 @@
/*---------------------------------------------------------------------------*
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
}

View File

@ -29,6 +29,7 @@ TARGET_BIN = jtag_only.exo
CRT0_O =
SRCS = \
crt0.c \
#SRCDIR = # using default
#LCFILE = # using default

View File

@ -0,0 +1,41 @@
/*---------------------------------------------------------------------------*
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
}

View File

@ -29,6 +29,7 @@ TARGET_BIN = twl_bootrom.exo
CRT0_O =
SRCS = \
crt0.c \
#SRCDIR = # using default
#LCFILE = # using default

View File

@ -0,0 +1,41 @@
/*---------------------------------------------------------------------------*
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
}

View File

@ -29,6 +29,7 @@ TARGET_BIN = thread.exo
CRT0_O =
SRCS = \
crt0.c \
#SRCDIR = # using default
#LCFILE = # using default

View File

@ -0,0 +1,41 @@
/*---------------------------------------------------------------------------*
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
}

View File

@ -29,6 +29,7 @@ TARGET_BIN = twl_bootrom.exo
CRT0_O =
SRCS = \
crt0.c \
#SRCDIR = # using default
#LCFILE = # using default

View File

@ -0,0 +1,41 @@
/*---------------------------------------------------------------------------*
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
}

View File

@ -233,7 +233,7 @@ 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)
#SRCS += $(BROM_PROM_SRC)
endif
# replace NitroSDK