Subversion Repositories Kolibri OS

Rev

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

Rev 1689 Rev 1710
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2009. 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: 1689 $
8
$Revision: 1710 $
9
 
9
 
10
 
10
 
Line 108... Line 108...
108
 
108
 
109
           mov eax, mem_used.fd-MEM_LIST_OFFSET
109
           mov eax, mem_used.fd-MEM_LIST_OFFSET
110
           mov [mem_used.fd], eax
110
           mov [mem_used.fd], eax
Line -... Line 111...
-
 
111
           mov [mem_used.bk], eax
111
           mov [mem_used.bk], eax
112
 
112
 
113
	   mov [KERNEL_ALLOC_FLAG], dword PG_SW
113
           stdcall alloc_pages, dword 32
114
           stdcall alloc_pages, dword 32
114
           mov ecx, 32
115
           mov ecx, 32
115
           mov edx, eax
116
           mov edx, eax
Line 569... Line 570...
569
           jz .err
570
           jz .err
Line 570... Line 571...
570
 
571
 
571
           mov edi, eax
572
           mov edi, eax
572
           mov edx, [lin_addr]
573
           mov edx, [lin_addr]
573
@@:
574
@@:
574
           stdcall map_page,edx,edi,dword PG_SW
575
           stdcall map_page,edx,edi,dword [KERNEL_ALLOC_FLAG]
575
           add edx, 0x1000
576
           add edx, 0x1000
576
           add edi, 0x1000
577
           add edi, 0x1000
577
           dec ecx
578
           dec ecx
578
           jnz @B
579
           jnz @B
Line 1536... Line 1537...
1536
           pop edi
1537
           pop edi
1537
           pop esi
1538
           pop esi
1538
.fail:
1539
.fail:
1539
           ret
1540
           ret
1540
endp
1541
endp
-
 
1542
diff16 "heap  code end ",0,$
-
 
1543
diff16 "heap  code size",init_kernel_heap,$