From 6f2514bcd98a77a3019ed8a0b2ea094b1bd4ddc2 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 8 Sep 2014 18:46:36 +0000 Subject: [PATCH] don't trash ebx in fs_read64_sys, was broken in r5089 git-svn-id: svn://kolibrios.org@5095 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/disk_cache.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/trunk/blkdev/disk_cache.inc b/kernel/trunk/blkdev/disk_cache.inc index 6f9fcfc926..dcacf9de56 100644 --- a/kernel/trunk/blkdev/disk_cache.inc +++ b/kernel/trunk/blkdev/disk_cache.inc @@ -49,7 +49,7 @@ CACHE_ITEM_MODIFIED = 2 ; out: ecx = number of sectors that were read fs_read64_sys: ; Save ebx, set ebx to SysCache and let the common part do its work. - push ebx + push ebx ebx mov ebx, [ebp+PARTITION.Disk] add ebx, DISK.SysCache jmp fs_read64_common @@ -63,7 +63,7 @@ fs_read64_sys: ; out: ecx = number of sectors that were read fs_read64_app: ; Save ebx, set ebx to AppCache and let the common part do its work. - push ebx + push ebx ebx mov ebx, [ebp+PARTITION.Disk] add ebx, DISK.AppCache @@ -162,7 +162,7 @@ end virtual sub ecx, [.num_sectors] .nothing: 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 .not_found_in_cache: ; Release the lock acquired at 6a.