mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-10-31 07:51:08 -04:00
スレッドライブラリ修正。
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:
parent
f48f0be43f
commit
dee8f26f96
@ -2,7 +2,7 @@
|
|||||||
Project: CtrBrom - libraries - OS
|
Project: CtrBrom - libraries - OS
|
||||||
File: os_init.c
|
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
|
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
|
||||||
@ -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_SYS_STACKSIZE[];
|
||||||
extern unsigned long SDK_IRQ_STACKSIZE[];
|
extern unsigned long SDK_IRQ_STACKSIZE[];
|
||||||
#define OSi_SYS_STACKSIZE ((s32)SDK_SYS_STACKSIZE)
|
#define OSi_SYS_STACKSIZE ((s32)SDK_SYS_STACKSIZE)
|
||||||
#define OSi_IRQ_STACKSIZE ((s32)SDK_IRQ_STACKSIZE)
|
#define OSi_IRQ_STACKSIZE ((s32)SDK_IRQ_STACKSIZE)
|
||||||
|
#endif // BROM_TARGET_APP
|
||||||
|
|
||||||
//---- Stack CheckNumber
|
//---- Stack CheckNumber
|
||||||
#ifdef SDK_ARM9
|
#ifdef SDK_ARM9
|
||||||
@ -497,6 +502,7 @@ void osInitThread(void)
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
osInitAlarm();
|
||||||
i_osIsThreadInitialized = TRUE;
|
i_osIsThreadInitialized = TRUE;
|
||||||
|
|
||||||
#ifndef SDK_THREAD_INFINITY
|
#ifndef SDK_THREAD_INFINITY
|
||||||
@ -1571,7 +1577,7 @@ void i_osCheckStack(const char *file, int line, const OSThread *thread)
|
|||||||
|
|
||||||
Returns: Stack Pointer
|
Returns: Stack Pointer
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static u32 i_osSystemStackBuffer;
|
u32 i_osSystemStackBuffer;
|
||||||
|
|
||||||
#include <brom/code32.h>
|
#include <brom/code32.h>
|
||||||
asm u32 i_osGetSystemStackPointer( void )
|
asm u32 i_osGetSystemStackPointer( void )
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
/*---------------------------------------------------------------------------*
|
||||||
Project: TwlBrom - specfiles
|
Project: CtrBrom - specfiles
|
||||||
File: ARM11-TEG.ldscript.template
|
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
|
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
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
/*---------------------------------------------------------------------------*
|
/*---------------------------------------------------------------------------*
|
||||||
Project: TwlBrom - specfiles
|
Project: CtrBrom - specfiles
|
||||||
File: ARM9-TEG.ldscript.template
|
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
|
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
|
||||||
|
|||||||
@ -32,7 +32,7 @@ extern "C" {
|
|||||||
#define HW_DC_SIZE 0x1000 // データキャッシュ
|
#define HW_DC_SIZE 0x1000 // データキャッシュ
|
||||||
#define HW_CACHE_LINE_SIZE 32
|
#define HW_CACHE_LINE_SIZE 32
|
||||||
|
|
||||||
#define HW_SYSTEM_CLOCK 33514000 // 正確には33513982?
|
#define HW_SYSTEM_CLOCK (33514000 * 2) // 正確には33513982?
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user