forked from KolibriOS/kolibrios
kernel: epic win. return to new cheat delay_hs
git-svn-id: svn://kolibrios.org@3597 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a830f8e6f3
commit
e80ec77b74
@ -2036,10 +2036,9 @@ sys_end:
|
|||||||
mov [eax+TASKDATA.state], 3; terminate this program
|
mov [eax+TASKDATA.state], 3; terminate this program
|
||||||
call wakeup_osloop
|
call wakeup_osloop
|
||||||
|
|
||||||
waitterm: ; wait here for termination
|
.waitterm: ; wait here for termination
|
||||||
mov ebx, 100
|
call change_task
|
||||||
call delay_hs
|
jmp .waitterm
|
||||||
jmp waitterm
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
restore_default_cursor_before_killing:
|
restore_default_cursor_before_killing:
|
||||||
@ -3850,7 +3849,7 @@ proc delay_hs_unprotected
|
|||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
if 0
|
if 1
|
||||||
align 4
|
align 4
|
||||||
delay_hs: ; delay in 1/100 secs
|
delay_hs: ; delay in 1/100 secs
|
||||||
; ebx = delay time
|
; ebx = delay time
|
||||||
@ -3865,10 +3864,11 @@ delay_hs: ; delay in 1/100 secs
|
|||||||
|
|
||||||
mov ebx, edx
|
mov ebx, edx
|
||||||
mov ecx, [esp]
|
mov ecx, [esp]
|
||||||
|
push edx
|
||||||
push eax
|
push eax
|
||||||
call wait_event_timeout
|
call wait_event_timeout
|
||||||
pop eax
|
pop eax
|
||||||
mov ebx, [esp]
|
pop ebx
|
||||||
call destroy_event
|
call destroy_event
|
||||||
.done:
|
.done:
|
||||||
add esp, 4
|
add esp, 4
|
||||||
|
Loading…
Reference in New Issue
Block a user