Subversion Repositories Kolibri OS

Rev

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

Rev 7276 Rev 8093
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2016. 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: 7276 $
8
$Revision: 8093 $
Line 9... Line 9...
9
 
9
 
Line 126... Line 126...
126
        mov     [slot], eax
126
        mov     [slot], eax
127
        shl     eax, 8
127
        shl     eax, 8
128
        lea     edi, [SLOT_BASE+eax]
128
        lea     edi, [SLOT_BASE+eax]
129
        mov     [slot_base], edi
129
        mov     [slot_base], edi
130
; clean extended information about process
130
; clean extended information about process
131
        mov     ecx, 256/4
131
        mov     ecx, sizeof.APPDATA/4
132
        xor     eax, eax
132
        xor     eax, eax
133
        cld
133
        cld
134
        rep stosd
134
        rep stosd
135
; write application name
135
; write application name
136
        stdcall strrchr, [path_string], '/'
136
        stdcall strrchr, [path_string], '/'
Line 724... Line 724...
724
 
724
 
725
        mov     edi, eax
725
        mov     edi, eax
726
        shl     edi, 8
726
        shl     edi, 8
727
        add     edi, SLOT_BASE
727
        add     edi, SLOT_BASE
728
        mov     edx, edi      ;edx=edi - pointer to extended infomation about new thread
728
        mov     edx, edi      ;edx=edi - pointer to extended infomation about new thread
729
        mov     ecx, 256/4
729
        mov     ecx, sizeof.APPDATA/4
730
        xor     eax, eax
730
        xor     eax, eax
731
        cld
731
        cld
732
        rep stosd             ;clean extended information about new thread
732
        rep stosd             ;clean extended information about new thread
733
        mov     esi, ebx
733
        mov     esi, ebx
Line 916... Line 916...
916
        mov     [eax+SLOT_BASE+APPDATA.exc_handler], 0
916
        mov     [eax+SLOT_BASE+APPDATA.exc_handler], 0
917
        mov     [eax+SLOT_BASE+APPDATA.except_mask], 0
917
        mov     [eax+SLOT_BASE+APPDATA.except_mask], 0
918
        mov     [eax+SLOT_BASE+APPDATA.terminate_protection], 80000001h
918
        mov     [eax+SLOT_BASE+APPDATA.terminate_protection], 80000001h
Line 919... Line 919...
919
 
919
 
920
;set default io permission map
920
;set default io permission map
921
        mov     ecx, [SLOT_BASE+256+APPDATA.io_map]
921
        mov     ecx, [SLOT_BASE+sizeof.APPDATA+APPDATA.io_map]
922
        mov     [eax+SLOT_BASE+APPDATA.io_map], ecx
922
        mov     [eax+SLOT_BASE+APPDATA.io_map], ecx
923
        mov     ecx, [SLOT_BASE+256+APPDATA.io_map+4]
923
        mov     ecx, [SLOT_BASE+sizeof.APPDATA+APPDATA.io_map+4]
Line 924... Line 924...
924
        mov     [eax+SLOT_BASE+APPDATA.io_map+4], ecx
924
        mov     [eax+SLOT_BASE+APPDATA.io_map+4], ecx
925
 
925
 
926
        mov     esi, fpu_data
926
        mov     esi, fpu_data