Read時にドライバへのセクタ要求が分割されないよう修正

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@320 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
shirait 2007-11-20 05:37:57 +00:00
parent 5187291bf5
commit 6751049144

View File

@ -399,7 +399,7 @@ int po_read(PCFD fd, byte *in_buff, int count) /*__apifn__*/
/* how many clusters are left */
n_to_read = (n_left + 511) >> 9;
n_clusters = (CLUSTERTYPE) ((n_to_read+pdrive->secpalloc-1) >> pdrive->log2_secpalloc);
n_clusters = (CLUSTERTYPE) ((n_to_read+block_in_cluster+pdrive->secpalloc-1) >> pdrive->log2_secpalloc); // AICP modified
/* how many contiguous clusters can we get ? <= n_clusters */
end_of_chain = 0;