Subversion Repositories Kolibri OS

Rev

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

Rev 465 Rev 506
Line 1... Line 1...
1
$Revision: 465 $
1
$Revision: 506 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                              ;;
3
;;                                                              ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
6
;;                                                              ;;
Line 103... Line 103...
103
           call test_app_header
103
           call test_app_header
104
           mov ecx, -0x1F
104
           mov ecx, -0x1F
105
           test eax, eax
105
           test eax, eax
106
           jz .err_hdr
106
           jz .err_hdr
Line 107... Line 107...
107
 
107
 
108
           mov esi, new_process_loading
108
           ;mov esi, new_process_loading
-
 
109
           ;call sys_msg_board_str       ; write message to message board
Line 109... Line 110...
109
           call sys_msg_board_str       ; write message to message board
110
           DEBUGF 1,"%s",new_process_loading
110
 
111
 
111
.wait_lock:
112
.wait_lock:
112
           cmp [application_table_status],0
113
           cmp [application_table_status],0
Line 809... Line 810...
809
           mov [app_cmdline], eax
810
           mov [app_cmdline], eax
810
           mov [app_path], eax
811
           mov [app_path], eax
811
           mov [app_eip], ebx
812
           mov [app_eip], ebx
812
           mov [app_esp], ecx
813
           mov [app_esp], ecx
Line 813... Line 814...
813
 
814
 
814
           mov    esi,new_process_loading
815
           ;mov    esi,new_process_loading
-
 
816
           ;call   sys_msg_board_str
815
           call   sys_msg_board_str
817
           DEBUGF 1,"%s",new_process_loading
816
.wait_lock:
818
.wait_lock:
817
           cmp [application_table_status],0
819
           cmp [application_table_status],0
818
           je .get_lock
820
           je .get_lock
819
           call   change_task
821
           call   change_task
Line 863... Line 865...
863
 
865
 
864
           lea eax, [app_cmdline]
866
           lea eax, [app_cmdline]
865
           stdcall set_app_params ,[slot],eax,dword 0,\
867
           stdcall set_app_params ,[slot],eax,dword 0,\
Line 866... Line 868...
866
                                         dword 0,dword 0
868
                                         dword 0,dword 0
867
 
869
 
-
 
870
           ;mov    esi,new_process_running
Line 868... Line 871...
868
           mov    esi,new_process_running
871
           ;call   sys_msg_board_str     ;output information about succefull startup
869
           call   sys_msg_board_str     ;output information about succefull startup
872
           DEBUGF 1,"%s",new_process_running
870
 
873
 
871
           mov    [application_table_status],0 ;unlock application_table_status mutex
874
           mov    [application_table_status],0 ;unlock application_table_status mutex
Line 1059... Line 1062...
1059
           jz   .no_debug
1062
           jz   .no_debug
1060
           mov  [CURRENT_TASK+ebx+0xa],byte 1 ;set process state - suspended
1063
           mov  [CURRENT_TASK+ebx+0xa],byte 1 ;set process state - suspended
1061
           mov  eax,[CURRENT_TASK]
1064
           mov  eax,[CURRENT_TASK]
1062
           mov  [SLOT_BASE+ebx*8+0xac],eax ;set debugger PID - current
1065
           mov  [SLOT_BASE+ebx*8+0xac],eax ;set debugger PID - current
1063
.no_debug:
1066
.no_debug:
1064
           mov    esi,new_process_running
1067
           ;mov    esi,new_process_running
1065
           call   sys_msg_board_str     ;output information about succefull startup
1068
           ;call   sys_msg_board_str     ;output information about succefull startup
-
 
1069
           DEBUGF 1,"%s",new_process_running
1066
           ret
1070
           ret
1067
endp
1071
endp
Line 1068... Line 1072...
1068
 
1072