Reactos

[HALX86] Use addressing relative to RIP

authored by

Jérôme Gardou and committed by
Jérôme Gardou
617c7cc3 6f000979

+3 -3
+3 -3
hal/halx86/apic/tsccal.S
··· 69 69 rdtsc 70 70 71 71 /* Read the current phase */ 72 - movzx rcx, byte ptr [TscCalibrationPhase] 72 + movzx rcx, byte ptr [rip+TscCalibrationPhase] 73 73 74 74 /* Check if we're already done */ 75 75 cmp cl, NUM_SAMPLES ··· 77 77 78 78 /* Store the current value */ 79 79 shl rcx, 3 80 - lea rbx, [TscCalibrationArray] 80 + lea rbx, [rip+TscCalibrationArray] 81 81 mov dword ptr [rbx + rcx], eax 82 82 mov dword ptr [rbx + rcx + 4], edx 83 83 84 84 /* Advance phase */ 85 - inc byte ptr [TscCalibrationPhase] 85 + inc byte ptr [rip+TscCalibrationPhase] 86 86 87 87 CalibrationISR_Exit: 88 88 /* Read CMOS register C */