blob: b56bedb459a284ee56b01514b1dd43a83eb8e192 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[BITS 32]
GLOBAL HalReadTimestampCounter
EXTERN g_ullTimeStampCounter
[SECTION .text]
;;;
;;; ULONGLONG
;;; HalReadTimestampCounter(void)
;;;
;;; Function to read the processor's timestamp counter
;;;
HalReadTimestampCounter:
ALIGN 4
rdtsc
mov [g_ullTimeStampCounter], edx
mov [g_ullTimeStampCounter+4], eax
ret
|