diff --git a/trunk/bootrom/build/bootrom/alarm/rom/Makefile b/trunk/bootrom/build/bootrom/alarm/rom/Makefile index 4ba3445..2ef54c6 100644 --- a/trunk/bootrom/build/bootrom/alarm/rom/Makefile +++ b/trunk/bootrom/build/bootrom/alarm/rom/Makefile @@ -29,6 +29,7 @@ TARGET_BIN = twl_bootrom.exo CRT0_O = SRCS = \ + crt0.c \ #SRCDIR = # using default #LCFILE = # using default diff --git a/trunk/bootrom/build/bootrom/alarm/rom/crt0.c b/trunk/bootrom/build/bootrom/alarm/rom/crt0.c new file mode 100644 index 0000000..6fc177c --- /dev/null +++ b/trunk/bootrom/build/bootrom/alarm/rom/crt0.c @@ -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 +#include +#include + +/*---------------------------------------------------------------------------* + 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 +} diff --git a/trunk/bootrom/build/bootrom/ctr_bootrom/rom/Makefile b/trunk/bootrom/build/bootrom/ctr_bootrom/rom/Makefile index 5c04bed..d6b0002 100644 --- a/trunk/bootrom/build/bootrom/ctr_bootrom/rom/Makefile +++ b/trunk/bootrom/build/bootrom/ctr_bootrom/rom/Makefile @@ -29,6 +29,7 @@ TARGET_BIN = twl_bootrom.exo CRT0_O = SRCS = \ + crt0.c \ #SRCDIR = # using default #LCFILE = # using default diff --git a/trunk/bootrom/build/bootrom/ctr_bootrom/rom/crt0.c b/trunk/bootrom/build/bootrom/ctr_bootrom/rom/crt0.c new file mode 100644 index 0000000..6fc177c --- /dev/null +++ b/trunk/bootrom/build/bootrom/ctr_bootrom/rom/crt0.c @@ -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 +#include +#include + +/*---------------------------------------------------------------------------* + 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 +} diff --git a/trunk/bootrom/build/bootrom/jtag-only/rom/Makefile b/trunk/bootrom/build/bootrom/jtag-only/rom/Makefile index 3a41917..df8122e 100644 --- a/trunk/bootrom/build/bootrom/jtag-only/rom/Makefile +++ b/trunk/bootrom/build/bootrom/jtag-only/rom/Makefile @@ -29,6 +29,7 @@ TARGET_BIN = jtag_only.exo CRT0_O = SRCS = \ + crt0.c \ #SRCDIR = # using default #LCFILE = # using default diff --git a/trunk/bootrom/build/bootrom/jtag-only/rom/crt0.c b/trunk/bootrom/build/bootrom/jtag-only/rom/crt0.c new file mode 100644 index 0000000..6fc177c --- /dev/null +++ b/trunk/bootrom/build/bootrom/jtag-only/rom/crt0.c @@ -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 +#include +#include + +/*---------------------------------------------------------------------------* + 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 +} diff --git a/trunk/bootrom/build/bootrom/teg-dev/rom/Makefile b/trunk/bootrom/build/bootrom/teg-dev/rom/Makefile index 6443ebb..1e149ea 100644 --- a/trunk/bootrom/build/bootrom/teg-dev/rom/Makefile +++ b/trunk/bootrom/build/bootrom/teg-dev/rom/Makefile @@ -29,6 +29,7 @@ TARGET_BIN = twl_bootrom.exo CRT0_O = SRCS = \ + crt0.c \ #SRCDIR = # using default #LCFILE = # using default diff --git a/trunk/bootrom/build/bootrom/teg-dev/rom/crt0.c b/trunk/bootrom/build/bootrom/teg-dev/rom/crt0.c new file mode 100644 index 0000000..6fc177c --- /dev/null +++ b/trunk/bootrom/build/bootrom/teg-dev/rom/crt0.c @@ -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 +#include +#include + +/*---------------------------------------------------------------------------* + 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 +} diff --git a/trunk/bootrom/build/bootrom/thread/rom/Makefile b/trunk/bootrom/build/bootrom/thread/rom/Makefile index 34f6750..c0789e1 100644 --- a/trunk/bootrom/build/bootrom/thread/rom/Makefile +++ b/trunk/bootrom/build/bootrom/thread/rom/Makefile @@ -29,6 +29,7 @@ TARGET_BIN = thread.exo CRT0_O = SRCS = \ + crt0.c \ #SRCDIR = # using default #LCFILE = # using default diff --git a/trunk/bootrom/build/bootrom/thread/rom/crt0.c b/trunk/bootrom/build/bootrom/thread/rom/crt0.c new file mode 100644 index 0000000..6fc177c --- /dev/null +++ b/trunk/bootrom/build/bootrom/thread/rom/crt0.c @@ -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 +#include +#include + +/*---------------------------------------------------------------------------* + 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 +} diff --git a/trunk/bootrom/build/bootrom/vfp/rom/Makefile b/trunk/bootrom/build/bootrom/vfp/rom/Makefile index 2ad95d3..5bd4e84 100644 --- a/trunk/bootrom/build/bootrom/vfp/rom/Makefile +++ b/trunk/bootrom/build/bootrom/vfp/rom/Makefile @@ -29,6 +29,7 @@ TARGET_BIN = twl_bootrom.exo CRT0_O = SRCS = \ + crt0.c \ #SRCDIR = # using default #LCFILE = # using default diff --git a/trunk/bootrom/build/bootrom/vfp/rom/crt0.c b/trunk/bootrom/build/bootrom/vfp/rom/crt0.c new file mode 100644 index 0000000..6fc177c --- /dev/null +++ b/trunk/bootrom/build/bootrom/vfp/rom/crt0.c @@ -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 +#include +#include + +/*---------------------------------------------------------------------------* + 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 +} diff --git a/trunk/bootrom/build/buildtools/commondefs b/trunk/bootrom/build/buildtools/commondefs index e3011b3..3e3a38d 100644 --- a/trunk/bootrom/build/buildtools/commondefs +++ b/trunk/bootrom/build/buildtools/commondefs @@ -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