mirror of
https://github.com/rvtr/twl_wrapsdk.git
synced 2025-10-31 06:11:10 -04:00
small fix
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@180 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
parent
0e509b8d49
commit
8e793fb52d
@ -138,16 +138,7 @@ BOOL nandCheckMedia( void) //TODO:nand partition
|
|||||||
(systemid!=0x0B) && (systemid!=0x0C)) {
|
(systemid!=0x0B) && (systemid!=0x0C)) {
|
||||||
return( FALSE);
|
return( FALSE);
|
||||||
}
|
}
|
||||||
/* Check the System ID of unuse partitions. */
|
|
||||||
for( i=1; i<4; i++) {
|
|
||||||
systemid = bufp[450+(16*i)];
|
|
||||||
if( systemid != 0x00) {
|
|
||||||
return( FALSE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**/
|
|
||||||
/*もっと厳密にチェックするならパーティション0開始位置の
|
|
||||||
正当性も調べる*/
|
|
||||||
return( TRUE);
|
return( TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2401,7 +2401,7 @@ static void SDCARD_Thread( void* arg)
|
|||||||
while( TRUE) {
|
while( TRUE) {
|
||||||
/* メッセージ待ち */
|
/* メッセージ待ち */
|
||||||
PRINTDEBUG( "rcv mes sdThread\n");
|
PRINTDEBUG( "rcv mes sdThread\n");
|
||||||
OS_ReceiveMessage( &sdmc_dtq, ¤t_dat, OS_MESSAGE_BLOCK);
|
OS_ReadMessage( &sdmc_dtq, ¤t_dat, OS_MESSAGE_BLOCK);
|
||||||
SdMsg = (SDCARDMsg*)current_dat;
|
SdMsg = (SDCARDMsg*)current_dat;
|
||||||
PRINTDEBUG( "sd task : receive command : %d\n", SdMsg->operation);
|
PRINTDEBUG( "sd task : receive command : %d\n", SdMsg->operation);
|
||||||
|
|
||||||
@ -2444,6 +2444,7 @@ static void SDCARD_Thread( void* arg)
|
|||||||
/*メッセージ返送*/
|
/*メッセージ返送*/
|
||||||
current_dat = (OSMessage)api_result;
|
current_dat = (OSMessage)api_result;
|
||||||
OS_SendMessage( &sdmc_result_dtq, current_dat, OS_MESSAGE_BLOCK);
|
OS_SendMessage( &sdmc_result_dtq, current_dat, OS_MESSAGE_BLOCK);
|
||||||
|
OS_ReceiveMessage( &sdmc_dtq, ¤t_dat, OS_MESSAGE_BLOCK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user