forked from KolibriOS/kolibrios
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:
parent
59e4c92d8d
commit
dfac57a317
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user