mirror of
https://github.com/rvtr/twl_wrapsdk.git
synced 2025-10-31 06:11:10 -04:00
Read時にドライバへのセクタ要求が分割されないよう修正
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@320 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
parent
5187291bf5
commit
6751049144
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user