don't trash ebx in fs_read64_sys, was broken in r5089

git-svn-id: svn://kolibrios.org@5095 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2014-09-08 18:46:36 +00:00
parent f63722e276
commit 6f2514bcd9

View File

@ -49,7 +49,7 @@ CACHE_ITEM_MODIFIED = 2
; out: ecx = number of sectors that were read ; out: ecx = number of sectors that were read
fs_read64_sys: fs_read64_sys:
; Save ebx, set ebx to SysCache and let the common part do its work. ; Save ebx, set ebx to SysCache and let the common part do its work.
push ebx push ebx ebx
mov ebx, [ebp+PARTITION.Disk] mov ebx, [ebp+PARTITION.Disk]
add ebx, DISK.SysCache add ebx, DISK.SysCache
jmp fs_read64_common jmp fs_read64_common
@ -63,7 +63,7 @@ fs_read64_sys:
; out: ecx = number of sectors that were read ; out: ecx = number of sectors that were read
fs_read64_app: fs_read64_app:
; Save ebx, set ebx to AppCache and let the common part do its work. ; Save ebx, set ebx to AppCache and let the common part do its work.
push ebx push ebx ebx
mov ebx, [ebp+PARTITION.Disk] mov ebx, [ebp+PARTITION.Disk]
add ebx, DISK.AppCache add ebx, DISK.AppCache
@ -162,7 +162,7 @@ end virtual
sub ecx, [.num_sectors] sub ecx, [.num_sectors]
.nothing: .nothing:
add esp, .local_vars_size add esp, .local_vars_size
pop edi esi ebx ; restore used registers to be stdcall pop edi esi ebx ebx ; restore used registers to be stdcall
ret ret
.not_found_in_cache: .not_found_in_cache:
; Release the lock acquired at 6a. ; Release the lock acquired at 6a.