forked from KolibriOS/kolibrios
kernel: epic fail. revert to old delay_hs code
git-svn-id: svn://kolibrios.org@3596 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
315305ed2a
commit
a830f8e6f3
@ -3850,6 +3850,7 @@ proc delay_hs_unprotected
|
|||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
|
if 0
|
||||||
align 4
|
align 4
|
||||||
delay_hs: ; delay in 1/100 secs
|
delay_hs: ; delay in 1/100 secs
|
||||||
; ebx = delay time
|
; ebx = delay time
|
||||||
@ -3873,6 +3874,35 @@ delay_hs: ; delay in 1/100 secs
|
|||||||
add esp, 4
|
add esp, 4
|
||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
align 4
|
||||||
|
delay_hs: ; delay in 1/100 secs
|
||||||
|
; ebx = delay time
|
||||||
|
push ecx
|
||||||
|
push edx
|
||||||
|
|
||||||
|
mov edx, [timer_ticks]
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
newtic:
|
||||||
|
mov ecx, [timer_ticks]
|
||||||
|
sub ecx, edx
|
||||||
|
cmp ecx, ebx
|
||||||
|
jae zerodelay
|
||||||
|
|
||||||
|
call change_task
|
||||||
|
|
||||||
|
jmp newtic
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
zerodelay:
|
||||||
|
pop edx
|
||||||
|
pop ecx
|
||||||
|
ret
|
||||||
|
end if
|
||||||
|
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
align 16 ;very often call this subrutine
|
align 16 ;very often call this subrutine
|
||||||
memmove: ; memory move in bytes
|
memmove: ; memory move in bytes
|
||||||
|
Loading…
Reference in New Issue
Block a user