スレッドライブラリ修正。

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@154 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
nakasima 2009-01-06 02:21:55 +00:00
parent f48f0be43f
commit dee8f26f96
4 changed files with 15 additions and 9 deletions

View File

@ -2,7 +2,7 @@
Project: CtrBrom - libraries - OS
File: os_init.c
Copyright 2008 Nintendo. All rights reserved.
Copyright 2008-2009 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo
@ -22,10 +22,15 @@
//---------------------------------------------------------------------------
#ifdef BROM_TARGET_BROM
#define OSi_SYS_STACKSIZE HW_BROM_SYS_STACK_SIZE
#define OSi_IRQ_STACKSIZE HW_BROM_IRQ_STACK_SIZE
#else // BROM_TARGET_APP
extern unsigned long SDK_SYS_STACKSIZE[];
extern unsigned long SDK_IRQ_STACKSIZE[];
#define OSi_SYS_STACKSIZE ((s32)SDK_SYS_STACKSIZE)
#define OSi_IRQ_STACKSIZE ((s32)SDK_IRQ_STACKSIZE)
#endif // BROM_TARGET_APP
//---- Stack CheckNumber
#ifdef SDK_ARM9
@ -497,6 +502,7 @@ void osInitThread(void)
{
return;
}
osInitAlarm();
i_osIsThreadInitialized = TRUE;
#ifndef SDK_THREAD_INFINITY
@ -1571,7 +1577,7 @@ void i_osCheckStack(const char *file, int line, const OSThread *thread)
Returns: Stack Pointer
*---------------------------------------------------------------------------*/
static u32 i_osSystemStackBuffer;
u32 i_osSystemStackBuffer;
#include <brom/code32.h>
asm u32 i_osGetSystemStackPointer( void )

View File

@ -1,8 +1,8 @@
/*---------------------------------------------------------------------------*
Project: TwlBrom - specfiles
File: ARM11-TEG.ldscript.template
Project: CtrBrom - specfiles
File: ARM11.ldscript.template
Copyright 2008 Nintendo. All rights reserved.
Copyright 2008-2009 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo

View File

@ -1,8 +1,8 @@
/*---------------------------------------------------------------------------*
Project: TwlBrom - specfiles
File: ARM9-TEG.ldscript.template
Project: CtrBrom - specfiles
File: ARM9.ldscript.template
Copyright 2008 Nintendo. All rights reserved.
Copyright 2008-2009 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo

View File

@ -32,7 +32,7 @@ extern "C" {
#define HW_DC_SIZE 0x1000 // データキャッシュ
#define HW_CACHE_LINE_SIZE 32
#define HW_SYSTEM_CLOCK 33514000 // 正確には33513982?
#define HW_SYSTEM_CLOCK (33514000 * 2) // 正確には33513982?
//----------------------------------------------------------------------