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] mov ecx, [ebx+0xF4]
cmp ecx, edx cmp ecx, edx
jne @B jne @B
popfd
mul [hpet_period] mul [hpet_period]
shrd eax, edx, 10
shr edx, 10
mov ebx, eax mov ebx, eax
mov esi, edx mov esi, edx
mov eax, ecx mov eax, ecx
mul [hpet_period] mul [hpet_period]
shld edx, eax, 22 add eax, esi
shl eax, 22 mov edx, eax
add eax, ebx mov eax, ebx
adc edx, esi shrd eax, edx, 10
shr edx, 10
popfd
pop esi pop esi
pop ebx pop ebx
ret ret