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:
shirait 2007-07-06 09:53:43 +00:00
parent 0e509b8d49
commit 8e793fb52d
2 changed files with 3 additions and 11 deletions

View File

@ -138,16 +138,7 @@ BOOL nandCheckMedia( void) //TODO:nand partition
(systemid!=0x0B) && (systemid!=0x0C)) {
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);
}

View File

@ -2401,7 +2401,7 @@ static void SDCARD_Thread( void* arg)
while( TRUE) {
/* メッセージ待ち */
PRINTDEBUG( "rcv mes sdThread\n");
OS_ReceiveMessage( &sdmc_dtq, &current_dat, OS_MESSAGE_BLOCK);
OS_ReadMessage( &sdmc_dtq, &current_dat, OS_MESSAGE_BLOCK);
SdMsg = (SDCARDMsg*)current_dat;
PRINTDEBUG( "sd task : receive command : %d\n", SdMsg->operation);
@ -2444,6 +2444,7 @@ static void SDCARD_Thread( void* arg)
/*メッセージ返送*/
current_dat = (OSMessage)api_result;
OS_SendMessage( &sdmc_result_dtq, current_dat, OS_MESSAGE_BLOCK);
OS_ReceiveMessage( &sdmc_dtq, &current_dat, OS_MESSAGE_BLOCK);
}
}