Subversion Repositories Kolibri OS

Rev

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

Rev 8680 Rev 8869
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2020. 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: 8680 $
8
$Revision: 8869 $
9
 
9
 
Line 352... Line 352...
352
        ret
352
        ret
353
endp
353
endp
Line 354... Line 354...
354
 
354
 
355
align 4
355
align 4
356
proc get_curr_task
356
proc get_curr_task
357
        mov     eax, [CURRENT_TASK]
357
        mov     eax, [current_slot_idx]
358
        shl     eax, 8
358
        shl     eax, 8
359
        ret
359
        ret
Line 360... Line 360...
360
endp
360
endp
Line 1209... Line 1209...
1209
        mov     [img_base], eax
1209
        mov     [img_base], eax
1210
        mov     eax, sizeof.HDLL
1210
        mov     eax, sizeof.HDLL
1211
        call    malloc
1211
        call    malloc
1212
        test    eax, eax
1212
        test    eax, eax
1213
        jz      .fail_and_free_user
1213
        jz      .fail_and_free_user
1214
        mov     ebx, [CURRENT_TASK]
1214
        mov     ebx, [current_slot_idx]
1215
        shl     ebx, 5
1215
        shl     ebx, 5
1216
        mov     edx, [CURRENT_TASK+ebx+TASKDATA.pid]
1216
        mov     edx, [TASK_TABLE+ebx+TASKDATA.pid]
1217
        mov     [eax+HDLL.pid], edx
1217
        mov     [eax+HDLL.pid], edx
1218
        push    eax
1218
        push    eax
1219
        call    init_dlls_in_thread
1219
        call    init_dlls_in_thread
1220
        pop     ebx
1220
        pop     ebx
1221
        test    eax, eax
1221
        test    eax, eax