Rev 525 | Rev 593 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 525 | Rev 569 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | $Revision: 525 $ |
1 | $Revision: 569 $ |
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 1088... | Line 1088... | ||
1088 | mov [ebx+REG_APP_ESP], eax ;app_stack |
1088 | mov [ebx+REG_APP_ESP], eax ;app_stack |
1089 | mov [ebx+REG_SS], dword app_data |
1089 | mov [ebx+REG_SS], dword app_data |
Line 1090... | Line 1090... | ||
1090 | 1090 | ||
1091 | lea ecx, [ebx+REG_RET] |
1091 | lea ecx, [ebx+REG_RET] |
1092 | mov ebx, [slot] |
- | |
1093 | shl ebx, 8 |
- | |
1094 | mov [ebx+SLOT_BASE+APPDATA.saved_esp], ecx |
- | |
1095 | - | ||
1096 | ;flush keyboard and buttons queue |
- | |
1097 | mov [KEY_COUNT],byte 0 |
- | |
1098 | mov [BTN_COUNT],byte 0 |
- | |
1099 | - | ||
1100 | mov edi,[slot] |
- | |
1101 | shl edi,5 |
- | |
1102 | add edi,window_data |
- | |
1103 | mov ebx,[slot] |
- | |
1104 | movzx esi,word [WIN_STACK+ebx*2] |
- | |
1105 | lea esi,[WIN_POS+esi*2] |
- | |
1106 | call windowactivate ;gui initialization |
- | |
1107 | - | ||
1108 | mov ebx,[slot] |
1092 | mov ebx, [slot] |
- | 1093 | shl ebx, 5 |
|
- | 1094 | mov [ebx*8+SLOT_BASE+APPDATA.saved_esp], ecx |
|
1109 | shl ebx,5 |
1095 | |
1110 | mov [CURRENT_TASK+ebx+0xa],byte 0 ;set process state - running |
1096 | xor ecx, ecx ; process state - running |
1111 | ; set if debuggee |
- | |
1112 | mov eax, [flags] |
1097 | ; set if debuggee |
1113 | test byte [flags], 1 |
1098 | test byte [flags], 1 |
1114 | jz .no_debug |
1099 | jz .no_debug |
1115 | mov [CURRENT_TASK+ebx+0xa],byte 1 ;set process state - suspended |
1100 | inc ecx ; process state - suspended |
1116 | mov eax,[CURRENT_TASK] |
1101 | mov eax,[CURRENT_TASK] |
1117 | mov [SLOT_BASE+ebx*8+0xac],eax ;set debugger PID - current |
1102 | mov [SLOT_BASE+ebx*8+APPDATA.debugger_slot],eax |
- | 1103 | .no_debug: |
|
1118 | .no_debug: |
1104 | mov [CURRENT_TASK+ebx+TASKDATA.state], cl |
1119 | ;mov esi,new_process_running |
1105 | ;mov esi,new_process_running |
1120 | ;call sys_msg_board_str ;output information about succefull startup |
1106 | ;call sys_msg_board_str ;output information about succefull startup |
1121 | DEBUGF 1,"%s",new_process_running |
1107 | DEBUGF 1,"%s",new_process_running |
1122 | ret |
1108 | ret |
Line 1123... | Line 1109... | ||
1123 | endp |
1109 | endp |
1124 | - |