mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 23:56:49 +03:00
kernel: get_clock_ns() correction
git-svn-id: svn://kolibrios.org@6941 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6286587115
commit
d8ccef567e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user