Fix calculate size of cache (IDE devices). Now data do not intersect limits of the cache.
git-svn-id: svn://kolibrios.org@584 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -358,6 +358,7 @@ calculate_for_hd:
|
|||||||
shl ebx,9
|
shl ebx,9
|
||||||
pop eax
|
pop eax
|
||||||
sub eax,ebx
|
sub eax,ebx
|
||||||
|
dec ecx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
calculate_for_cd:
|
calculate_for_cd:
|
||||||
@@ -371,6 +372,7 @@ calculate_for_cd:
|
|||||||
shl ebx,11
|
shl ebx,11
|
||||||
pop eax
|
pop eax
|
||||||
sub eax,ebx
|
sub eax,ebx
|
||||||
|
dec ecx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
clear_ide_cache:
|
clear_ide_cache:
|
||||||
|
Reference in New Issue
Block a user