Subversion Repositories Kolibri OS

Rev

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

Rev 381 Rev 392
Line 887... Line 887...
887
           xor eax, eax
887
           xor eax, eax
888
           cld
888
           cld
889
           rep    stosd               ;clean extended information about new thread
889
           rep    stosd               ;clean extended information about new thread
890
           mov    esi,ebx
890
           mov    esi,ebx
891
           mov    edi,edx
891
           mov    edi,edx
-
 
892
           mov byte [edi], '@'
-
 
893
           inc    edi
892
           mov    ecx,11
894
           mov    ecx,11
893
           rep    movsb               ;copy process name
895
           rep    movsb               ;copy process name
Line 894... Line 896...
894
 
896
 
895
           mov eax,[ebx+APPDATA.heap_base]
897
           mov eax,[ebx+APPDATA.heap_base]
Line 947... Line 949...
947
 
949
 
948
           locals
950
           locals
949
             pl0_stack dd ?
951
             pl0_stack dd ?
Line 950... Line 952...
950
           endl
952
           endl
951
 
953
 
Line 952... Line 954...
952
           stdcall kernel_alloc, 0x2000
954
           stdcall kernel_alloc, RING0_STACK_SIZE+512
Line 953... Line 955...
953
           mov [pl0_stack], eax
955
           mov [pl0_stack], eax
954
 
956
 
Line 955... Line 957...
955
           lea edi, [eax+0x2000-512]
957
           lea edi, [eax+RING0_STACK_SIZE]
Line 1075... Line 1077...
1075
           mov [edi+TSS._fs],app_data
1077
           mov [edi+TSS._fs],app_data
1076
           mov [edi+TSS._gs],graph_data ;selector of graphic segment
1078
           mov [edi+TSS._gs],graph_data ;selector of graphic segment
1077
           mov [edi+TSS._io],word 128
1079
           mov [edi+TSS._io],word 128
1078
           mov [edi+TSS._ss0], os_data
1080
           mov [edi+TSS._ss0], os_data
1079
           mov ebx, [pl0_stack]
1081
           mov ebx, [pl0_stack]
1080
           add ebx, 0x2000-512
1082
           add ebx, RING0_STACK_SIZE
1081
           mov [edi+TSS._esp0],ebx
1083
           mov [edi+TSS._esp0],ebx
Line 1082... Line 1084...
1082
 
1084
 
1083
           mov ecx, edi    ;ecx - address of application TSS
1085
           mov ecx, edi    ;ecx - address of application TSS
1084
           mov ebx,[slot]
1086
           mov ebx,[slot]