2011-09-06 21:01:49 +00:00
|
|
|
|
2017-12-09 12:20:22 +00:00
|
|
|
#ifndef _TSC_H_
|
|
|
|
#define _TSC_H_
|
2011-09-06 21:01:49 +00:00
|
|
|
|
|
|
|
#define NUM_SAMPLES 4
|
|
|
|
#define MSR_RDTSC 0x10
|
|
|
|
|
|
|
|
#ifndef __ASM__
|
|
|
|
|
2015-09-15 10:35:49 +00:00
|
|
|
void __cdecl TscCalibrationISR(void);
|
2011-09-06 21:01:49 +00:00
|
|
|
extern LARGE_INTEGER HalpCpuClockFrequency;
|
2015-11-10 13:19:40 +00:00
|
|
|
VOID NTAPI HalpInitializeTsc(void);
|
2011-09-06 21:01:49 +00:00
|
|
|
|
2011-09-07 21:41:50 +00:00
|
|
|
#ifdef _M_AMD64
|
|
|
|
#define KiGetIdtEntry(Pcr, Vector) &((Pcr)->IdtBase[Vector])
|
|
|
|
#else
|
2011-09-06 21:01:49 +00:00
|
|
|
#define KiGetIdtEntry(Pcr, Vector) &((Pcr)->IDT[Vector])
|
2011-09-07 21:41:50 +00:00
|
|
|
#endif
|
2011-09-06 21:01:49 +00:00
|
|
|
|
|
|
|
#endif
|
2017-12-09 12:20:22 +00:00
|
|
|
|
|
|
|
#endif /* !_TSC_H_ */
|