xref: /reactos/hal/halx86/apic/tsc.h (revision 0bae06fa)
1 
2 #ifndef _TSC_H_
3 #define _TSC_H_
4 
5 #define NUM_SAMPLES 4
6 #define MSR_RDTSC 0x10
7 
8 #ifndef __ASM__
9 
10 void __cdecl TscCalibrationISR(void);
11 extern LARGE_INTEGER HalpCpuClockFrequency;
12 VOID NTAPI HalpInitializeTsc(void);
13 
14 #ifdef _M_AMD64
15 #define KiGetIdtEntry(Pcr, Vector) &((Pcr)->IdtBase[Vector])
16 #else
17 #define KiGetIdtEntry(Pcr, Vector) &((Pcr)->IDT[Vector])
18 #endif
19 
20 #endif
21 
22 #endif /* !_TSC_H_ */
23