From c2b9713bb9f6d4ac8e8d6b31cd53be807408b7ed Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Wed, 11 Nov 2020 22:28:04 +0000 Subject: [PATCH] Fix r8139: delay_ms was 10x slower when using HPET. git-svn-id: svn://kolibrios.org@8176 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index de349a04ff..10ee2b0e41 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -3964,7 +3964,7 @@ delay_ms: ; delay in 1/1000 sec cmp [hpet_base], 0 jz .no_hpet mov eax, esi - mov edx, 10_000_000 ; cs to ns + mov edx, 1_000_000 ; ms to ns mul edx mov ebx, edx mov ecx, eax