Rev 3232 | Rev 3555 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3232 | Rev 3500 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 3232 $ |
8 | $Revision: 3500 $ |
9 | 9 | ||
Line 1469... | Line 1469... | ||
1469 | wrmsr |
1469 | wrmsr |
1470 | ret |
1470 | ret |
1471 | endp |
1471 | endp |
Line 1472... | Line 1472... | ||
1472 | 1472 | ||
1473 | align 4 |
- | |
1474 | proc stall stdcall, delay:dword |
- | |
1475 | push ecx |
- | |
1476 | push edx |
- | |
1477 | push ebx |
- | |
1478 | push eax |
- | |
1479 | - | ||
1480 | mov eax, [delay] |
- | |
1481 | mul [stall_mcs] |
- | |
1482 | mov ebx, eax ;low |
- | |
1483 | mov ecx, edx ;high |
- | |
1484 | rdtsc |
- | |
1485 | add ebx, eax |
- | |
1486 | adc ecx, edx |
- | |
1487 | @@: |
- | |
1488 | rdtsc |
- | |
1489 | sub eax, ebx |
- | |
1490 | sbb edx, ecx |
- | |
1491 | jb @B |
- | |
1492 | - | ||
1493 | pop eax |
- | |
1494 | pop ebx |
- | |
1495 | pop edx |
- | |
1496 | pop ecx |
- | |
1497 | ret |
- | |
1498 | endp |
- | |
1499 | - | ||
1500 | align 4 |
1473 | align 4 |
1501 | proc create_ring_buffer stdcall, size:dword, flags:dword |
1474 | proc create_ring_buffer stdcall, size:dword, flags:dword |
1502 | locals |
1475 | locals |
1503 | buf_ptr dd ? |
1476 | buf_ptr dd ? |