Rev 5629 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5629 | Rev 5645 | ||
---|---|---|---|
Line 439... | Line 439... | ||
439 | pop ebp |
439 | pop ebp |
440 | ret |
440 | ret |
Line 441... | Line 441... | ||
441 | 441 | ||
442 | align 4 |
442 | align 4 |
- | 443 | get_clock_ns: |
|
- | 444 | ||
- | 445 | mov eax, [hpet_base] |
|
- | 446 | test eax, eax |
|
- | 447 | jz .old_tics |
|
443 | get_clock_ns: |
448 | |
444 | push ebx |
449 | push ebx |
445 | pushfd |
450 | pushfd |
Line 446... | Line 451... | ||
446 | cli |
451 | cli |
447 | 452 | ||
448 | mov ebx, [hpet_base] |
453 | mov ebx, eax |
449 | @@: |
454 | @@: |
450 | mov edx, [ebx+0xF4] |
455 | mov edx, [ebx+0xF4] |
451 | mov eax, [ebx+0xF0] |
456 | mov eax, [ebx+0xF0] |
Line 461... | Line 466... | ||
461 | 466 | ||
462 | popfd |
467 | popfd |
463 | pop ebx |
468 | pop ebx |
Line -... | Line 469... | ||
- | 469 | ret |
|
- | 470 | ||
- | 471 | .old_tics: |
|
- | 472 | mov eax, [timer_ticks] |
|
- | 473 | mov edx, 10000000 |
|
- | 474 | mul edx |