fix floppy operations broken in r5089

git-svn-id: svn://kolibrios.org@5196 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2014-11-28 20:19:34 +00:00
parent 50b2538b02
commit 2a46f2320b

View File

@ -623,10 +623,10 @@ end virtual
; Assume that devices < 3MB are floppies which are slow ; Assume that devices < 3MB are floppies which are slow
; (ramdisk does not have a cache, so we don't even get here for ramdisk). ; (ramdisk does not have a cache, so we don't even get here for ramdisk).
; This is a dirty hack, but the entire function is somewhat hacky. Use fs_read64*. ; This is a dirty hack, but the entire function is somewhat hacky. Use fs_read64*.
mov eax, [ebp+PARTITION.Disk] mov ecx, [ebp+PARTITION.Disk]
cmp dword [eax+DISK.MediaInfo.Capacity+4], 0 cmp dword [ecx+DISK.MediaInfo.Capacity+4], 0
jnz @f jnz @f
cmp dword [eax+DISK.MediaInfo.Capacity], 3 shl (20-9) cmp dword [ecx+DISK.MediaInfo.Capacity], 3 shl (20-9)
jb .floppy jb .floppy
@@: @@:
; We want to prefetch CACHE_LEGACY_READ_SIZE sectors. ; We want to prefetch CACHE_LEGACY_READ_SIZE sectors.
@ -755,6 +755,7 @@ end virtual
; and go to 4c. ; and go to 4c.
pop esi pop esi
mov [esi+CACHE_ITEM.Status], CACHE_ITEM_COPY mov [esi+CACHE_ITEM.Status], CACHE_ITEM_COPY
mov ecx, [ebx+DISKCACHE.sector_size_log]
jmp .found_in_cache jmp .found_in_cache
; On error at steps 13-14, release the lock ; On error at steps 13-14, release the lock