1 2 3 #define NUM_SAMPLES 4 4 #define MSR_RDTSC 0x10 5 6 #ifndef __ASM__ 7 8 void __cdecl TscCalibrationISR(void); 9 extern LARGE_INTEGER HalpCpuClockFrequency; 10 VOID NTAPI HalpInitializeTsc(void); 11 12 #ifdef _M_AMD64 13 #define KiGetIdtEntry(Pcr, Vector) &((Pcr)->IdtBase[Vector]) 14 #else 15 #define KiGetIdtEntry(Pcr, Vector) &((Pcr)->IDT[Vector]) 16 #endif 17 18 #endif 19