mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +00:00
[HALX86] Use addressing relative to RIP
This commit is contained in:
parent
6f000979eb
commit
617c7cc377
1 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ FUNC TscCalibrationISR
|
||||||
rdtsc
|
rdtsc
|
||||||
|
|
||||||
/* Read the current phase */
|
/* Read the current phase */
|
||||||
movzx rcx, byte ptr [TscCalibrationPhase]
|
movzx rcx, byte ptr [rip+TscCalibrationPhase]
|
||||||
|
|
||||||
/* Check if we're already done */
|
/* Check if we're already done */
|
||||||
cmp cl, NUM_SAMPLES
|
cmp cl, NUM_SAMPLES
|
||||||
|
@ -77,12 +77,12 @@ FUNC TscCalibrationISR
|
||||||
|
|
||||||
/* Store the current value */
|
/* Store the current value */
|
||||||
shl rcx, 3
|
shl rcx, 3
|
||||||
lea rbx, [TscCalibrationArray]
|
lea rbx, [rip+TscCalibrationArray]
|
||||||
mov dword ptr [rbx + rcx], eax
|
mov dword ptr [rbx + rcx], eax
|
||||||
mov dword ptr [rbx + rcx + 4], edx
|
mov dword ptr [rbx + rcx + 4], edx
|
||||||
|
|
||||||
/* Advance phase */
|
/* Advance phase */
|
||||||
inc byte ptr [TscCalibrationPhase]
|
inc byte ptr [rip+TscCalibrationPhase]
|
||||||
|
|
||||||
CalibrationISR_Exit:
|
CalibrationISR_Exit:
|
||||||
/* Read CMOS register C */
|
/* Read CMOS register C */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue