From 85b2b4bfbeb9a76a59f4f1bd2ef899c55ef5187c Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 13 Jan 2014 11:06:54 +0000 Subject: [PATCH] fix disk_cache.inc by dunkaist git-svn-id: svn://kolibrios.org@4442 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/disk_cache.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/blkdev/disk_cache.inc b/kernel/trunk/blkdev/disk_cache.inc index 2186b3eca4..627c82bdcb 100644 --- a/kernel/trunk/blkdev/disk_cache.inc +++ b/kernel/trunk/blkdev/disk_cache.inc @@ -231,7 +231,7 @@ end virtual ; If failed, save error code. test eax, eax jz @f - mov [.error_code], eax + mov [.error_code+.local_vars2_size], eax @@: ; 11. Copy data for the caller. ; Note that buffer in edi is advanced automatically. @@ -250,7 +250,7 @@ end virtual ; 12b. Prepare for the loop: save edi and create a local variable that ; stores number of sectors to be copied. push edi - push [.current_num_sectors] + push [.current_num_sectors+4] .store_to_cache: ; 12c. For each sector, call the lookup function with adding to the cache, if not yet. mov eax, [.sector_lo+.local_vars2_size+8]