disk_sync now flushes both caches even in compatibility mode

git-svn-id: svn://kolibrios.org@2653 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2012-04-27 16:37:37 +00:00
parent 63be312755
commit 6ea08a8bb3

View File

@ -608,7 +608,12 @@ disk_sync:
; Compatibility hack: if PARTITION.Disk is 'old', there is no DISK structure, ; Compatibility hack: if PARTITION.Disk is 'old', there is no DISK structure,
; this request should be processed by write_cache. ; this request should be processed by write_cache.
cmp esi, 'old' cmp esi, 'old'
jz write_cache jnz @f
mov [hdd_appl_data], 0
call write_cache
mov [hdd_appl_data], 1
jmp write_cache
@@:
; The algorithm is straightforward. ; The algorithm is straightforward.
push esi push esi
push esi ; for second write_cache64 push esi ; for second write_cache64