Rev 1394 | Rev 2455 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1394 | Rev 2288 | ||
---|---|---|---|
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: 1394 $ |
8 | $Revision: 2288 $ |
9 | 9 | ||
10 | 10 | ||
11 | ; diamond, 2006 |
11 | ; diamond, 2006 |
12 | sys_debug_services: |
12 | sys_debug_services: |
- | 13 | cmp ebx, 9 |
|
13 | cmp ebx, 9 |
14 | ja @f |
14 | ja @f |
15 | jmp dword [sys_debug_services_table+ebx*4] |
15 | jmp dword [sys_debug_services_table+ebx*4] |
16 | @@: |
16 | @@: ret |
17 | ret |
17 | iglobal |
18 | iglobal |
18 | align 4 |
19 | align 4 |
Line 91... | Line 92... | ||
91 | test cl, cl |
92 | test cl, cl |
92 | jz .1 |
93 | jz .1 |
93 | cmp cl, 5 |
94 | cmp cl, 5 |
94 | jnz .ret |
95 | jnz .ret |
95 | mov cl, 2 |
96 | mov cl, 2 |
- | 97 | .2: |
|
96 | .2: mov [CURRENT_TASK+eax+TASKDATA.state], cl |
98 | mov [CURRENT_TASK+eax+TASKDATA.state], cl |
97 | .ret: |
99 | .ret: |
98 | sti |
100 | sti |
99 | ret |
101 | ret |
100 | .1: |
102 | .1: |
101 | inc ecx |
103 | inc ecx |
Line 106... | Line 108... | ||
106 | cmp cl, 1 |
108 | cmp cl, 1 |
107 | jz .1 |
109 | jz .1 |
108 | cmp cl, 2 |
110 | cmp cl, 2 |
109 | jnz .ret |
111 | jnz .ret |
110 | mov cl, 5 |
112 | mov cl, 5 |
- | 113 | .2: |
|
111 | .2: mov [CURRENT_TASK+eax+TASKDATA.state], cl |
114 | mov [CURRENT_TASK+eax+TASKDATA.state], cl |
- | 115 | .ret: |
|
112 | .ret: ret |
116 | ret |
- | 117 | .1: |
|
113 | .1: dec ecx |
118 | dec ecx |
114 | jmp .2 |
119 | jmp .2 |
Line 115... | Line 120... | ||
115 | 120 | ||
116 | debug_resume: |
121 | debug_resume: |
117 | ; in: ecx=pid |
122 | ; in: ecx=pid |
Line 120... | Line 125... | ||
120 | mov eax, ecx |
125 | mov eax, ecx |
121 | call pid_to_slot |
126 | call pid_to_slot |
122 | shl eax, 5 |
127 | shl eax, 5 |
123 | jz .ret |
128 | jz .ret |
124 | call do_resume |
129 | call do_resume |
- | 130 | .ret: |
|
125 | .ret: sti |
131 | sti |
126 | ret |
132 | ret |
Line 127... | Line 133... | ||
127 | 133 | ||
128 | debug_getcontext: |
134 | debug_getcontext: |
129 | ; in: |
135 | ; in: |