kernel: get_clock_ns() correction

git-svn-id: svn://kolibrios.org@6941 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2017-08-11 14:55:17 +00:00
parent 6286587115
commit d8ccef567e

View File

@ -458,22 +458,20 @@ get_clock_ns:
mov ecx, [ebx+0xF4]
cmp ecx, edx
jne @B
popfd
mul [hpet_period]
shrd eax, edx, 10
shr edx, 10
mov ebx, eax
mov esi, edx
mov eax, ecx
mul [hpet_period]
shld edx, eax, 22
shl eax, 22
add eax, ebx
adc edx, esi
add eax, esi
mov edx, eax
mov eax, ebx
shrd eax, edx, 10
shr edx, 10
popfd
pop esi
pop ebx
ret