Rev 1314 | Rev 1329 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1314 | Rev 1322 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. 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: 1314 $ |
8 | $Revision: 1322 $ |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 882... | Line 882... | ||
882 | jmp .wait_lock |
882 | jmp .wait_lock |
Line 883... | Line 883... | ||
883 | 883 | ||
884 | .get_lock: |
884 | .get_lock: |
885 | mov eax, 1 |
885 | mov eax, 1 |
886 | xchg eax, [application_table_status] |
886 | xchg eax, [application_table_status] |
887 | cmp eax, 0 |
887 | test eax, eax |
Line 888... | Line 888... | ||
888 | jne .wait_lock |
888 | jnz .wait_lock |
Line 889... | Line 889... | ||
889 | 889 | ||
890 | call set_application_table_status |
890 | call set_application_table_status |
Line 932... | Line 932... | ||
932 | 932 | ||
933 | push edx |
933 | push edx |
934 | stdcall user_alloc, 4096 |
934 | stdcall user_alloc, 4096 |
935 | pop edx |
935 | pop edx |
936 | test eax, eax |
936 | test eax, eax |
937 | jz .failed |
937 | jz .failed1 ;eax=0 |
938 | @@: |
938 | @@: |
Line 939... | Line 939... | ||
939 | mov [edx+APPDATA.tls_base], eax |
939 | mov [edx+APPDATA.tls_base], eax |
940 | 940 | ||
941 | lea eax, [app_cmdline] |
941 | lea eax, [app_cmdline] |
Line 942... | Line 942... | ||
942 | stdcall set_app_params ,[slot],eax,dword 0,\ |
942 | stdcall set_app_params ,[slot],eax,dword 0,\ |
943 | dword 0,dword 0 |
943 | dword 0,dword 0 |
944 | - | ||
- | 944 | ||
945 | ;mov esi,new_process_running |
945 | ;mov esi,new_process_running |
946 | ;call sys_msg_board_str ;output information about succefull startup |
946 | ;call sys_msg_board_str ;output information about succefull startup |
947 | 947 | xor eax,eax |
|
948 | mov [application_table_status],0 ;unlock application_table_status mutex |
948 | mov [application_table_status],eax ;unlock application_table_status mutex |
- | 949 | mov eax,[process_number] ;set result |
|
- | 950 | ret |
|
949 | mov eax,[process_number] ;set result |
951 | .failed: |
950 | ret |
952 | xor eax,eax |
951 | .failed: |
953 | .failed1: |
952 | mov [application_table_status],0 |
954 | mov [application_table_status],eax |
Line 953... | Line 955... | ||
953 | mov eax,-1 |
955 | dec eax ;-1 |
954 | ret |
956 | ret |
Line 1112... | Line 1114... | ||
1112 | inc dword [process_number] |
1114 | inc dword [process_number] |
1113 | mov eax,[process_number] |
1115 | mov eax,[process_number] |
1114 | mov [ebx+4],eax ;set PID |
1116 | mov [ebx+4],eax ;set PID |
Line 1115... | Line 1117... | ||
1115 | 1117 | ||
1116 | ;set draw data to full screen |
- | |
- | 1118 | ;set draw data to full screen |
|
1117 | 1119 | xor eax,eax |
|
1118 | mov [ecx+0],dword 0 |
1120 | mov [ecx+0],dword eax |
1119 | mov [ecx+4],dword 0 |
1121 | mov [ecx+4],dword eax |
1120 | mov eax,[Screen_Max_X] |
1122 | mov eax,[Screen_Max_X] |
1121 | mov [ecx+8],eax |
1123 | mov [ecx+8],eax |
1122 | mov eax,[Screen_Max_Y] |
1124 | mov eax,[Screen_Max_Y] |