Subversion Repositories Kolibri OS

Rev

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

Rev 983 Rev 1090
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2008. 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: 983 $
8
$Revision: 1090 $
9
 
9
 
10
 
10
 
Line 136... Line 136...
136
           mov [ebx+block_prev], eax
136
           mov [ebx+block_prev], eax
137
           mov [ebx+list_fd], eax
137
           mov [ebx+list_fd], eax
138
           mov [ebx+list_bk], eax
138
           mov [ebx+list_bk], eax
139
           mov [ebx+block_base], HEAP_BASE+4096*MEM_BLOCK_SIZE
139
           mov [ebx+block_base], HEAP_BASE+4096*MEM_BLOCK_SIZE
Line -... Line 140...
-
 
140
 
-
 
141
           mov ecx, [pg_data.kernel_pages]
-
 
142
           shl ecx, 12
140
 
143
           neg ecx
141
           mov ecx, [MEM_AMOUNT]
144
           add ecx, [MEM_AMOUNT]
142
           sub ecx, (HEAP_BASE - OS_BASE + 4096*MEM_BLOCK_SIZE)
145
           sub ecx, 4096*MEM_BLOCK_SIZE
143
           mov [heap_size], ecx
146
           mov [heap_size], ecx
144
           mov [heap_free], ecx
147
           mov [heap_free], ecx
145
           mov [ebx+block_size], ecx
148
           mov [ebx+block_size], ecx