Subversion Repositories Kolibri OS

Rev

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

Rev 6893 Rev 6974
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2015. 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: 6893 $
8
$Revision: 6974 $
9
 
9
 
10
 
10
 
Line 594... Line 594...
594
endp
594
endp
Line 595... Line 595...
595
 
595
 
596
align 4
596
align 4
597
proc user_alloc stdcall, alloc_size:dword
597
proc user_alloc stdcall, alloc_size:dword
598
        push    ebx esi edi
598
        push    ebx esi edi
599
        call    init_heap
599
        mov     ebx, [current_process]
600
        lea     ecx, [ebx+PROC.heap_lock]
600
        lea     ecx, [ebx+PROC.heap_lock]
601
        call    mutex_lock
601
        call    mutex_lock
602
        mov     ecx, [alloc_size]
602
        mov     ecx, [alloc_size]
603
        add     ecx, (4095+PAGE_SIZE)
603
        add     ecx, (4095+PAGE_SIZE)