From e80ec77b74506297d64d3e66a180e889249f2f2d Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Tue, 4 Jun 2013 08:04:42 +0000 Subject: [PATCH] kernel: epic win. return to new cheat delay_hs git-svn-id: svn://kolibrios.org@3597 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index f6b0e95ab1..01f5f6dba6 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -2036,10 +2036,9 @@ sys_end: mov [eax+TASKDATA.state], 3; terminate this program call wakeup_osloop - waitterm: ; wait here for termination - mov ebx, 100 - call delay_hs - jmp waitterm +.waitterm: ; wait here for termination + call change_task + jmp .waitterm ;------------------------------------------------------------------------------ align 4 restore_default_cursor_before_killing: @@ -3850,7 +3849,7 @@ proc delay_hs_unprotected ret endp -if 0 +if 1 align 4 delay_hs: ; delay in 1/100 secs ; ebx = delay time @@ -3865,10 +3864,11 @@ delay_hs: ; delay in 1/100 secs mov ebx, edx mov ecx, [esp] + push edx push eax call wait_event_timeout pop eax - mov ebx, [esp] + pop ebx call destroy_event .done: add esp, 4