File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ _KeStallExecutionProcessor@4:
9797 * Force the in - order execution of the RDTSC instruction.
9898 * HAL will overwrite this with a no - op instruction on older processors.
9999 * /
100+ PUBLIC _HalpStallExecutionStart
101+ _HalpStallExecutionStart:
100102 xor eax , eax
101103 cpuid
102104
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ HalpTscCalibrationISR(VOID);
2525
2626extern volatile ULONG TscCalibrationPhase ;
2727extern ULONG64 TscCalibrationArray [NUM_SAMPLES ];
28+ extern UCHAR HalpStallExecutionStart ;
2829
2930/* FUNCTIONS *****************************************************************/
3031
@@ -33,7 +34,7 @@ CODE_SEG("INIT")
3334VOID
3435HalpPrepareStallExecution (VOID )
3536{
36- PUCHAR Instruction = ( PUCHAR )(( ULONG_PTR ) KeStallExecutionProcessor + 1 ) ;
37+ PUCHAR Instruction = & HalpStallExecutionStart ;
3738 PKPRCB Prcb = KeGetCurrentPrcb ();
3839
3940 /* xor eax, eax; cpuid */
You can’t perform that action at this time.
0 commit comments