Subversion Repositories Kolibri OS

Rev

Rev 2288 | Rev 2455 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2288 Rev 2381
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2011. All rights reserved.      ;;
3
;; Copyright (C) KolibriOS team 2011. All rights reserved.      ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 2288 $
8
$Revision: 2381 $
9
 
9
 
10
; This function is intended to replace the old 'hd_read' function when
10
; This function is intended to replace the old 'hd_read' function when
11
; [hdd_appl_data] = 0, so its input/output parameters are the same, except
11
; [hdd_appl_data] = 0, so its input/output parameters are the same, except
Line 518... Line 518...
518
        dbgstr 'no memory for disk cache'
518
        dbgstr 'no memory for disk cache'
519
        jmp     .nothing
519
        jmp     .nothing
520
@@:
520
@@:
521
; 3. Fill two DISKCACHE structures.
521
; 3. Fill two DISKCACHE structures.
522
        mov     [esi+DISK.SysCache.pointer], eax
522
        mov     [esi+DISK.SysCache.pointer], eax
523
        lea     ecx, [esi+DISK.SysCache.Lock]
523
        lea     ecx, [esi+DISK.SysCache.mutex]
524
        call    mutex_init
524
        call    mutex_init
525
        lea     ecx, [esi+DISK.AppCache.Lock]
525
        lea     ecx, [esi+DISK.AppCache.mutex]
526
        call    mutex_init
526
        call    mutex_init
527
; The following code is inherited from getcache.inc.
527
; The following code is inherited from getcache.inc.
528
        mov     edx, [esi+DISK.SysCache.pointer]
528
        mov     edx, [esi+DISK.SysCache.pointer]
529
        and     [esi+DISK.SysCache.search_start], 0
529
        and     [esi+DISK.SysCache.search_start], 0
530
        and     [esi+DISK.AppCache.search_start], 0
530
        and     [esi+DISK.AppCache.search_start], 0