Fix r8139: delay_ms was 10x slower when using HPET.

git-svn-id: svn://kolibrios.org@8176 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Baravy 2020-11-11 22:28:04 +00:00
parent 5b65357242
commit c2b9713bb9

View File

@ -3964,7 +3964,7 @@ delay_ms: ; delay in 1/1000 sec
cmp [hpet_base], 0 cmp [hpet_base], 0
jz .no_hpet jz .no_hpet
mov eax, esi mov eax, esi
mov edx, 10_000_000 ; cs to ns mov edx, 1_000_000 ; ms to ns
mul edx mul edx
mov ebx, edx mov ebx, edx
mov ecx, eax mov ecx, eax