2007-03-21 23:58:33 +01:00
|
|
|
$Revision$
|
2006-01-25 14:19:21 +01:00
|
|
|
; diamond, 2006
|
|
|
|
sys_debug_services:
|
2006-04-10 17:20:34 +02:00
|
|
|
cmp eax, 9
|
2006-01-25 14:19:21 +01:00
|
|
|
ja @f
|
|
|
|
jmp dword [sys_debug_services_table+eax*4]
|
|
|
|
@@: ret
|
|
|
|
sys_debug_services_table:
|
|
|
|
dd debug_set_event_data
|
|
|
|
dd debug_getcontext
|
|
|
|
dd debug_setcontext
|
|
|
|
dd debug_detach
|
|
|
|
dd debug_suspend
|
|
|
|
dd debug_resume
|
|
|
|
dd debug_read_process_memory
|
|
|
|
dd debug_write_process_memory
|
|
|
|
dd debug_terminate
|
2006-04-10 17:20:34 +02:00
|
|
|
dd debug_set_drx
|
2006-01-25 14:19:21 +01:00
|
|
|
|
|
|
|
debug_set_event_data:
|
|
|
|
; in: ebx = pointer
|
|
|
|
; destroys eax
|
2007-02-28 09:52:06 +01:00
|
|
|
mov eax, [CURRENT_TASK]
|
2006-01-25 14:19:21 +01:00
|
|
|
shl eax, 8
|
2007-02-28 11:51:05 +01:00
|
|
|
mov [eax+SLOT_BASE+APPDATA.dbg_event_mem], ebx
|
2006-01-25 14:19:21 +01:00
|
|
|
ret
|
|
|
|
|
|
|
|
get_debuggee_slot:
|
|
|
|
; in: ebx=PID
|
|
|
|
; out: CF=1 if error
|
|
|
|
; CF=0 and eax=slot*0x20 if ok
|
|
|
|
; out: interrupts disabled
|
|
|
|
cli
|
|
|
|
mov eax, ebx
|
|
|
|
call pid_to_slot
|
|
|
|
test eax, eax
|
|
|
|
jz .ret_bad
|
|
|
|
shl eax, 5
|
|
|
|
push ebx
|
2007-02-28 09:52:06 +01:00
|
|
|
mov ebx, [CURRENT_TASK]
|
2007-02-28 11:51:05 +01:00
|
|
|
cmp [SLOT_BASE+eax*8+APPDATA.debugger_slot], ebx
|
2006-01-25 14:19:21 +01:00
|
|
|
pop ebx
|
|
|
|
jnz .ret_bad
|
|
|
|
; clc ; automatically
|
|
|
|
ret
|
|
|
|
.ret_bad:
|
|
|
|
stc
|
|
|
|
ret
|
|
|
|
|
|
|
|
debug_detach:
|
|
|
|
; in: ebx=pid
|
|
|
|
; destroys eax,ebx
|
|
|
|
call get_debuggee_slot
|
|
|
|
jc .ret
|
2007-02-28 11:51:05 +01:00
|
|
|
and dword [eax*8+SLOT_BASE+APPDATA.debugger_slot], 0
|
2006-01-25 14:19:21 +01:00
|
|
|
call do_resume
|
|
|
|
.ret:
|
|
|
|
sti
|
|
|
|
ret
|
|
|
|
|
|
|
|
debug_terminate:
|
|
|
|
; in: ebx=pid
|
|
|
|
call get_debuggee_slot
|
|
|
|
jc debug_detach.ret
|
|
|
|
mov ebx, eax
|
|
|
|
shr ebx, 5
|
|
|
|
push 2
|
|
|
|
pop eax
|
|
|
|
jmp sys_system
|
|
|
|
|
|
|
|
debug_suspend:
|
|
|
|
; in: ebx=pid
|
|
|
|
; destroys eax,ebx
|
|
|
|
call get_debuggee_slot
|
|
|
|
jc .ret
|
2007-02-28 09:52:06 +01:00
|
|
|
mov bl, [CURRENT_TASK+eax+TASKDATA.state] ; process state
|
2006-01-25 14:19:21 +01:00
|
|
|
test bl, bl
|
|
|
|
jz .1
|
|
|
|
cmp bl, 5
|
|
|
|
jnz .ret
|
|
|
|
mov bl, 2
|
2007-02-28 09:52:06 +01:00
|
|
|
.2: mov [CURRENT_TASK+eax+TASKDATA.state], bl
|
2006-01-25 14:19:21 +01:00
|
|
|
.ret:
|
|
|
|
sti
|
|
|
|
ret
|
|
|
|
.1:
|
|
|
|
inc ebx
|
|
|
|
jmp .2
|
|
|
|
|
|
|
|
do_resume:
|
2007-02-28 09:52:06 +01:00
|
|
|
mov bl, [CURRENT_TASK+eax+TASKDATA.state]
|
2006-01-25 14:19:21 +01:00
|
|
|
cmp bl, 1
|
|
|
|
jz .1
|
|
|
|
cmp bl, 2
|
|
|
|
jnz .ret
|
|
|
|
mov bl, 5
|
2007-02-28 09:52:06 +01:00
|
|
|
.2: mov [CURRENT_TASK+eax+TASKDATA.state], bl
|
2006-01-25 14:19:21 +01:00
|
|
|
.ret: ret
|
|
|
|
.1: dec ebx
|
|
|
|
jmp .2
|
|
|
|
|
|
|
|
debug_resume:
|
|
|
|
; in: ebx=pid
|
|
|
|
; destroys eax,ebx
|
|
|
|
call get_debuggee_slot
|
|
|
|
jc .ret
|
|
|
|
call do_resume
|
|
|
|
.ret: sti
|
|
|
|
ret
|
|
|
|
|
|
|
|
debug_getcontext:
|
|
|
|
; in:
|
|
|
|
; ebx=pid
|
|
|
|
; ecx=sizeof(CONTEXT)
|
|
|
|
; edx->CONTEXT
|
|
|
|
; destroys eax,ecx,edx,esi,edi
|
|
|
|
cmp ecx, 28h
|
|
|
|
jnz .ret
|
|
|
|
add edx, std_application_base_address
|
|
|
|
push ebx
|
|
|
|
mov ebx, edx
|
|
|
|
call check_region
|
|
|
|
pop ebx
|
|
|
|
dec eax
|
|
|
|
jnz .ret
|
|
|
|
call get_debuggee_slot
|
|
|
|
jc .ret
|
|
|
|
imul eax, tss_step/32
|
|
|
|
add eax, tss_data
|
|
|
|
mov edi, edx
|
2006-12-17 07:22:59 +01:00
|
|
|
cmp [eax+TSS._cs], app_code
|
2006-01-25 14:19:21 +01:00
|
|
|
jnz .ring0
|
2006-12-17 07:22:59 +01:00
|
|
|
lea esi, [eax+TSS._eip]
|
2006-01-25 14:19:21 +01:00
|
|
|
shr ecx, 2
|
|
|
|
rep movsd
|
|
|
|
jmp .ret
|
|
|
|
.ring0:
|
|
|
|
; note that following code assumes that all interrupt/exception handlers
|
|
|
|
; saves ring-3 context by push ds es, pushad in this order
|
2006-12-17 07:22:59 +01:00
|
|
|
mov esi, [eax+TSS._esp0]
|
2006-01-25 14:19:21 +01:00
|
|
|
; top of ring0 stack: ring3 stack ptr (ss+esp), iret data (cs+eip+eflags), ds, es, pushad
|
|
|
|
sub esi, 8+12+8+20h
|
|
|
|
lodsd
|
|
|
|
mov [edi+24h], eax
|
|
|
|
lodsd
|
|
|
|
mov [edi+20h], eax
|
|
|
|
lodsd
|
|
|
|
mov [edi+1Ch], eax
|
|
|
|
lodsd
|
|
|
|
lodsd
|
|
|
|
mov [edi+14h], eax
|
|
|
|
lodsd
|
|
|
|
mov [edi+10h], eax
|
|
|
|
lodsd
|
|
|
|
mov [edi+0Ch], eax
|
|
|
|
lodsd
|
|
|
|
mov [edi+8], eax
|
|
|
|
add esi, 8
|
|
|
|
lodsd
|
|
|
|
mov [edi], eax
|
|
|
|
lodsd
|
|
|
|
lodsd
|
|
|
|
mov [edi+4], eax
|
|
|
|
lodsd
|
|
|
|
mov [edi+18h], eax
|
|
|
|
.ret:
|
|
|
|
sti
|
|
|
|
ret
|
|
|
|
|
|
|
|
debug_setcontext:
|
|
|
|
; in:
|
|
|
|
; ebx=pid
|
|
|
|
; ecx=sizeof(CONTEXT)
|
|
|
|
; edx->CONTEXT
|
|
|
|
; destroys eax,ecx,edx,esi,edi
|
|
|
|
cmp ecx, 28h
|
|
|
|
jnz .ret
|
|
|
|
add edx, std_application_base_address
|
|
|
|
push ebx
|
|
|
|
mov ebx, edx
|
|
|
|
call check_region
|
|
|
|
pop ebx
|
|
|
|
dec eax
|
|
|
|
jnz .ret
|
|
|
|
call get_debuggee_slot
|
|
|
|
jc .stiret
|
|
|
|
imul eax, tss_step/32
|
|
|
|
add eax, tss_data
|
|
|
|
mov esi, edx
|
2006-12-17 07:22:59 +01:00
|
|
|
cmp [eax+TSS._cs], app_code
|
2006-01-25 14:19:21 +01:00
|
|
|
jnz .ring0
|
2006-12-17 07:22:59 +01:00
|
|
|
lea edi, [eax+TSS._eip]
|
2006-01-25 14:19:21 +01:00
|
|
|
shr ecx, 2
|
|
|
|
rep movsd
|
|
|
|
jmp .stiret
|
|
|
|
.ring0:
|
2006-12-17 07:22:59 +01:00
|
|
|
mov edi, [eax+TSS._esp0]
|
2006-01-25 14:19:21 +01:00
|
|
|
sub edi, 8+12+8+20h
|
|
|
|
mov eax, [esi+24h]
|
|
|
|
stosd
|
|
|
|
mov eax, [esi+20h]
|
|
|
|
stosd
|
|
|
|
mov eax, [esi+1Ch]
|
|
|
|
stosd
|
|
|
|
scasd
|
|
|
|
mov eax, [esi+14h]
|
|
|
|
stosd
|
|
|
|
mov eax, [esi+10h]
|
|
|
|
stosd
|
|
|
|
mov eax, [esi+0Ch]
|
|
|
|
stosd
|
|
|
|
mov eax, [esi+8]
|
|
|
|
stosd
|
|
|
|
add edi, 8
|
|
|
|
mov eax, [esi]
|
|
|
|
stosd
|
|
|
|
scasd
|
|
|
|
mov eax, [esi+4]
|
|
|
|
stosd
|
|
|
|
mov eax, [esi+18h]
|
|
|
|
stosd
|
|
|
|
.stiret:
|
|
|
|
sti
|
|
|
|
.ret:
|
|
|
|
ret
|
|
|
|
|
2006-04-10 17:20:34 +02:00
|
|
|
debug_set_drx:
|
|
|
|
call get_debuggee_slot
|
|
|
|
jc .errret
|
|
|
|
mov ebp, eax
|
2007-02-28 11:51:05 +01:00
|
|
|
lea eax, [eax*8+SLOT_BASE+APPDATA.dbg_regs]
|
2006-04-10 17:20:34 +02:00
|
|
|
; [eax]=dr0, [eax+4]=dr1, [eax+8]=dr2, [eax+C]=dr3
|
|
|
|
; [eax+10]=dr7
|
|
|
|
add edx, std_application_base_address
|
|
|
|
jc .errret
|
|
|
|
cmp cl, 3
|
|
|
|
ja .errret
|
|
|
|
mov ebx, dr7
|
|
|
|
shr ebx, cl
|
|
|
|
shr ebx, cl
|
|
|
|
test ebx, 2 ; bit 1+2*index = G0..G3, global break enable
|
|
|
|
jnz .errret2
|
|
|
|
test ch, ch
|
|
|
|
jns .new
|
|
|
|
; clear breakpoint
|
|
|
|
movzx ecx, cl
|
|
|
|
add ecx, ecx
|
|
|
|
and dword [eax+ecx*2], 0 ; clear DR<i>
|
|
|
|
btr dword [eax+10h], ecx ; clear L<i> bit
|
|
|
|
test byte [eax+10h], 55h
|
|
|
|
jnz .okret
|
|
|
|
imul eax, ebp, tss_step/32
|
2006-12-17 07:22:59 +01:00
|
|
|
and byte [eax + tss_data + TSS._trap], not 1
|
2006-04-10 17:20:34 +02:00
|
|
|
.okret:
|
|
|
|
and dword [esp+36], 0
|
|
|
|
sti
|
|
|
|
ret
|
|
|
|
.errret:
|
|
|
|
sti
|
|
|
|
mov dword [esp+36], 1
|
|
|
|
ret
|
|
|
|
.errret2:
|
|
|
|
sti
|
|
|
|
mov dword [esp+36], 2
|
|
|
|
ret
|
|
|
|
.new:
|
|
|
|
; add new breakpoint
|
|
|
|
; cl=index; ch=flags; edx=address
|
|
|
|
test ch, 0xF0
|
|
|
|
jnz .errret
|
|
|
|
mov bl, ch
|
|
|
|
and bl, 3
|
|
|
|
cmp bl, 2
|
|
|
|
jz .errret
|
|
|
|
mov bl, ch
|
|
|
|
shr bl, 2
|
|
|
|
cmp bl, 2
|
|
|
|
jz .errret
|
|
|
|
test dl, bl
|
|
|
|
jnz .errret
|
|
|
|
or byte [eax+10h+1], 3 ; set GE and LE flags
|
|
|
|
movzx ebx, ch
|
|
|
|
movzx ecx, cl
|
|
|
|
add ecx, ecx
|
|
|
|
bts dword [eax+10h], ecx ; set L<i> flag
|
|
|
|
add ecx, ecx
|
|
|
|
mov [eax+ecx], edx ; set DR<i>
|
|
|
|
shl ebx, cl
|
|
|
|
mov edx, 0xF
|
|
|
|
shl edx, cl
|
|
|
|
not edx
|
|
|
|
and [eax+10h+2], dx
|
|
|
|
or [eax+10h+2], bx ; set R/W and LEN fields
|
|
|
|
imul eax, ebp, tss_step/32
|
2006-12-17 07:22:59 +01:00
|
|
|
or byte [eax + tss_data + TSS._trap], 1
|
2006-04-10 17:20:34 +02:00
|
|
|
jmp .okret
|
|
|
|
|
2006-01-25 14:19:21 +01:00
|
|
|
debug_read_process_memory:
|
|
|
|
; in:
|
|
|
|
; ebx=pid
|
|
|
|
; ecx=length
|
|
|
|
; esi->buffer in debugger
|
|
|
|
; edx=address in debuggee
|
2006-02-03 18:00:44 +01:00
|
|
|
; out: [esp+36]=sizeof(read)
|
2006-01-25 14:19:21 +01:00
|
|
|
; destroys all
|
|
|
|
add esi, std_application_base_address
|
|
|
|
push ebx
|
|
|
|
mov ebx, esi
|
|
|
|
call check_region
|
|
|
|
pop ebx
|
|
|
|
dec eax
|
2006-02-03 18:00:44 +01:00
|
|
|
jnz .err
|
2006-01-25 14:19:21 +01:00
|
|
|
call get_debuggee_slot
|
2006-02-03 18:00:44 +01:00
|
|
|
jc .err
|
|
|
|
shr eax, 5
|
2006-01-25 14:19:21 +01:00
|
|
|
mov ebx, esi
|
|
|
|
call read_process_memory
|
|
|
|
sti
|
2006-02-03 18:00:44 +01:00
|
|
|
mov dword [esp+36], eax
|
|
|
|
ret
|
|
|
|
.err:
|
|
|
|
or dword [esp+36], -1
|
2006-01-25 14:19:21 +01:00
|
|
|
ret
|
|
|
|
|
|
|
|
debug_write_process_memory:
|
|
|
|
; in:
|
|
|
|
; ebx=pid
|
|
|
|
; ecx=length
|
|
|
|
; esi->buffer in debugger
|
|
|
|
; edx=address in debuggee
|
2006-02-03 18:00:44 +01:00
|
|
|
; out: [esp+36]=sizeof(write)
|
2006-01-25 14:19:21 +01:00
|
|
|
; destroys all
|
|
|
|
add esi, std_application_base_address
|
|
|
|
push ebx
|
|
|
|
mov ebx, esi
|
|
|
|
call check_region
|
|
|
|
pop ebx
|
|
|
|
dec eax
|
2006-02-03 18:00:44 +01:00
|
|
|
jnz debug_read_process_memory.err
|
2006-01-25 14:19:21 +01:00
|
|
|
call get_debuggee_slot
|
2006-02-03 18:00:44 +01:00
|
|
|
jc debug_read_process_memory.err
|
|
|
|
shr eax, 5
|
2006-01-25 14:19:21 +01:00
|
|
|
mov ebx, esi
|
|
|
|
call write_process_memory
|
|
|
|
sti
|
2006-02-03 18:00:44 +01:00
|
|
|
mov [esp+36], eax
|
2006-01-25 14:19:21 +01:00
|
|
|
ret
|
|
|
|
|
|
|
|
debugger_notify:
|
|
|
|
; in: eax=debugger slot
|
|
|
|
; ecx=size of debug message
|
|
|
|
; [esp+4]..[esp+4+ecx]=message
|
|
|
|
; interrupts must be disabled!
|
|
|
|
; destroys all general registers
|
|
|
|
; interrupts remain disabled
|
2006-04-10 17:20:34 +02:00
|
|
|
xchg ebp, eax
|
2006-03-21 12:46:13 +01:00
|
|
|
mov edi, [timer_ticks]
|
|
|
|
add edi, 500 ; 5 sec timeout
|
2006-01-25 14:19:21 +01:00
|
|
|
.1:
|
2006-04-10 17:20:34 +02:00
|
|
|
mov eax, ebp
|
|
|
|
shl eax, 8
|
2007-02-28 11:51:05 +01:00
|
|
|
mov edx, [SLOT_BASE+eax+APPDATA.dbg_event_mem]
|
2006-01-25 14:19:21 +01:00
|
|
|
test edx, edx
|
|
|
|
jz .ret
|
|
|
|
; read buffer header
|
|
|
|
push ecx
|
|
|
|
push eax
|
|
|
|
push eax
|
|
|
|
mov eax, ebp
|
|
|
|
mov ebx, esp
|
|
|
|
mov ecx, 8
|
|
|
|
call read_process_memory
|
|
|
|
cmp eax, ecx
|
|
|
|
jz @f
|
|
|
|
add esp, 12
|
|
|
|
jmp .ret
|
|
|
|
@@:
|
|
|
|
cmp dword [ebx], 0
|
|
|
|
jg @f
|
|
|
|
.2:
|
|
|
|
pop ecx
|
|
|
|
pop ecx
|
|
|
|
pop ecx
|
2007-02-28 09:52:06 +01:00
|
|
|
cmp dword [CURRENT_TASK], 1
|
2006-04-10 17:20:34 +02:00
|
|
|
jnz .notos
|
2006-03-21 12:46:13 +01:00
|
|
|
cmp [timer_ticks], edi
|
|
|
|
jae .ret
|
2006-04-10 17:20:34 +02:00
|
|
|
.notos:
|
2006-01-25 14:19:21 +01:00
|
|
|
sti
|
|
|
|
call change_task
|
|
|
|
cli
|
|
|
|
jmp .1
|
|
|
|
@@:
|
|
|
|
mov ecx, [ebx+8]
|
|
|
|
add ecx, [ebx+4]
|
|
|
|
cmp ecx, [ebx]
|
|
|
|
ja .2
|
|
|
|
; advance buffer position
|
|
|
|
push ecx
|
|
|
|
mov ecx, 4
|
|
|
|
sub ebx, ecx
|
|
|
|
mov eax, ebp
|
|
|
|
add edx, ecx
|
|
|
|
call write_process_memory
|
|
|
|
pop eax
|
|
|
|
; write message
|
|
|
|
mov eax, ebp
|
|
|
|
add edx, ecx
|
|
|
|
add edx, [ebx+8]
|
|
|
|
add ebx, 20
|
|
|
|
pop ecx
|
|
|
|
pop ecx
|
|
|
|
pop ecx
|
|
|
|
call write_process_memory
|
|
|
|
; new debug event
|
|
|
|
mov eax, ebp
|
|
|
|
shl eax, 8
|
2007-02-28 11:51:05 +01:00
|
|
|
or byte [SLOT_BASE+eax+APPDATA.event_mask+1], 1 ; set flag 100h
|
2006-01-25 14:19:21 +01:00
|
|
|
.ret:
|
|
|
|
ret
|
2006-04-10 17:20:34 +02:00
|
|
|
|
|
|
|
debug_exc:
|
|
|
|
; int 1 = #DB
|
|
|
|
save_ring3_context
|
2006-08-02 16:34:15 +02:00
|
|
|
cld
|
2006-04-10 17:20:34 +02:00
|
|
|
mov ax, os_data
|
|
|
|
mov ds, ax
|
|
|
|
mov es, ax
|
|
|
|
mov eax, dr6
|
|
|
|
test ax, ax
|
|
|
|
jns @f
|
|
|
|
; this is exception from task switch
|
|
|
|
; set DRx registers for task and continue
|
2007-02-28 09:52:06 +01:00
|
|
|
mov eax, [CURRENT_TASK]
|
2006-04-10 17:20:34 +02:00
|
|
|
shl eax, 8
|
2007-02-28 11:51:05 +01:00
|
|
|
add eax, SLOT_BASE+APPDATA.dbg_regs
|
2006-04-10 17:20:34 +02:00
|
|
|
mov ecx, [eax+0]
|
|
|
|
mov dr0, ecx
|
|
|
|
mov ecx, [eax+4]
|
|
|
|
mov dr1, ecx
|
|
|
|
mov ecx, [eax+8]
|
|
|
|
mov dr2, ecx
|
|
|
|
mov ecx, [eax+0Ch]
|
|
|
|
mov dr3, ecx
|
|
|
|
xor ecx, ecx
|
|
|
|
mov dr6, ecx
|
|
|
|
mov ecx, [eax+10h]
|
|
|
|
mov dr7, ecx
|
|
|
|
restore_ring3_context
|
|
|
|
iretd
|
|
|
|
@@:
|
|
|
|
push eax
|
|
|
|
xor eax, eax
|
|
|
|
mov dr6, eax
|
|
|
|
; test if debugging
|
|
|
|
cli
|
2007-02-28 09:52:06 +01:00
|
|
|
mov eax, [CURRENT_TASK]
|
2006-04-10 17:20:34 +02:00
|
|
|
shl eax, 8
|
2007-02-28 11:51:05 +01:00
|
|
|
mov eax, [SLOT_BASE+eax+APPDATA.debugger_slot]
|
2006-04-10 17:20:34 +02:00
|
|
|
test eax, eax
|
|
|
|
jnz .debug
|
|
|
|
sti
|
|
|
|
; not debuggee => say error and terminate
|
|
|
|
add esp, 28h+4
|
|
|
|
mov [error_interrupt], 1
|
|
|
|
call show_error_parameters
|
2007-02-28 09:52:06 +01:00
|
|
|
mov edx, [TASK_BASE]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov byte [edx+TASKDATA.state], 4
|
2006-04-10 17:20:34 +02:00
|
|
|
jmp change_task
|
|
|
|
.debug:
|
|
|
|
; we are debugged process, notify debugger and suspend ourself
|
|
|
|
; eax=debugger PID
|
|
|
|
pop edx
|
|
|
|
mov ebx, dr7
|
|
|
|
mov cl, not 1
|
|
|
|
.l1:
|
|
|
|
test bl, 1
|
|
|
|
jnz @f
|
|
|
|
and dl, cl
|
|
|
|
@@:
|
|
|
|
shr ebx, 2
|
|
|
|
add cl, cl
|
|
|
|
inc ecx
|
|
|
|
cmp cl, not 10h
|
|
|
|
jnz .l1
|
|
|
|
push edx ; DR6 image
|
2007-02-28 09:52:06 +01:00
|
|
|
mov ecx, [TASK_BASE]
|
2006-08-06 12:29:45 +02:00
|
|
|
push dword [ecx+TASKDATA.pid] ; PID
|
2006-04-10 17:20:34 +02:00
|
|
|
push 12
|
|
|
|
pop ecx
|
|
|
|
push 3 ; 3 = debug exception
|
|
|
|
call debugger_notify
|
|
|
|
pop ecx
|
|
|
|
pop ecx
|
|
|
|
pop ecx
|
2007-02-28 09:52:06 +01:00
|
|
|
mov edx, [TASK_BASE]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov byte [edx+TASKDATA.state], 1 ; suspended
|
2006-04-10 17:20:34 +02:00
|
|
|
call change_task
|
|
|
|
restore_ring3_context
|
|
|
|
iretd
|