mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-06-18 16:55:31 -04:00
コアIDを表示。
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@273 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
parent
4026331a53
commit
ff76f93ea1
@ -23,26 +23,19 @@ void BromMain( void )
|
||||
|
||||
osPrintf( "ARM11: start\n" );
|
||||
|
||||
#ifdef BROM_TARGET_FIRM
|
||||
#ifdef CTR_DEBUGGER_ARM
|
||||
#undef osTPrintf( ... )
|
||||
#define osTPrintf( ... ) ((void)0)
|
||||
#endif // CTR_DEBUGGER_ARM
|
||||
#endif // BROM_TARGET_FIRM
|
||||
|
||||
osInitThread();
|
||||
while ( 1 )
|
||||
{
|
||||
if ( osTryLockByte(1, (OSLockByte *)HW_CARD_LOCK_BUF, NULL) == OS_LOCK_SUCCESS )
|
||||
{
|
||||
osTPrintf( "SpinLock is succeed.\n" );
|
||||
osTPrintf( "Core%d: SpinLock is succeed.\n", i_osGetCpuID() );
|
||||
osSleep(1000 - 100 * i_osGetCpuID());
|
||||
osUnlockByte(1, (OSLockByte *)HW_CARD_LOCK_BUF, NULL);
|
||||
osSleep(1000 - 100 * i_osGetCpuID());
|
||||
}
|
||||
else
|
||||
{
|
||||
osTPrintf( "SpinLock is failed.\n" );
|
||||
osTPrintf( "Core%d: SpinLock is failed.\n", i_osGetCpuID() );
|
||||
osSleep(1000 - 100 * i_osGetCpuID());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user