Subversion Repositories Kolibri OS

Rev

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

Rev 4700 Rev 4711
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-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: 4700 $
8
$Revision: 4711 $
9
 
9
 
Line 10... Line 10...
10
;-----------------------------------------------------------------------------
10
;-----------------------------------------------------------------------------
Line 136... Line 136...
136
get_cache_ide:
136
get_cache_ide:
137
        and     [esi+IDE_CACHE.search_start], 0
137
        and     [esi+IDE_CACHE.search_start], 0
138
        and     [esi+IDE_CACHE.appl_search_start], 0
138
        and     [esi+IDE_CACHE.appl_search_start], 0
Line 139... Line 139...
139
 
139
 
140
        push    ecx
140
        push    ecx
141
        DEBUGF  1, "K : IDE_CACHE.size %x\n", [esi+IDE_CACHE.size]
141
;        DEBUGF  1, "K : IDE_CACHE.size %x\n", [esi+IDE_CACHE.size]
142
        stdcall kernel_alloc, [esi+IDE_CACHE.size]
142
        stdcall kernel_alloc, [esi+IDE_CACHE.size]
143
        mov     [esi+IDE_CACHE.pointer], eax
143
        mov     [esi+IDE_CACHE.pointer], eax
Line 144... Line 144...
144
        pop     ecx
144
        pop     ecx
145
 
145
 
146
        mov     edx, eax
146
        mov     edx, eax
147
        mov     eax, [esi+IDE_CACHE.size]
147
        mov     eax, [esi+IDE_CACHE.size]
148
        shr     eax, 3
148
        shr     eax, 3
149
        DEBUGF  1, "K : IDE_CACHE.system_data_size %x\n", eax
149
;        DEBUGF  1, "K : IDE_CACHE.system_data_size %x\n", eax
150
        mov     [esi+IDE_CACHE.system_data_size], eax
150
        mov     [esi+IDE_CACHE.system_data_size], eax
151
        mov     ebx, eax
151
        mov     ebx, eax
152
        imul    eax, 7
152
        imul    eax, 7
153
        DEBUGF  1, "K : IDE_CACHE.appl_data_size %x\n", eax
153
;        DEBUGF  1, "K : IDE_CACHE.appl_data_size %x\n", eax
154
        mov     [esi+IDE_CACHE.appl_data_size], eax
154
        mov     [esi+IDE_CACHE.appl_data_size], eax
Line 155... Line 155...
155
        add     ebx, edx
155
        add     ebx, edx