https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8abcd187423ca52235302…
commit 8abcd187423ca5223530252d26e71531a523276e
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed Apr 21 19:52:58 2021 +0200
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Wed Apr 28 13:10:23 2021 +0200
[RTL] Use addressing relative to rip
---
sdk/lib/rtl/amd64/slist.S | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sdk/lib/rtl/amd64/slist.S b/sdk/lib/rtl/amd64/slist.S
index 928cb52cd43..08eb382351d 100644
--- a/sdk/lib/rtl/amd64/slist.S
+++ b/sdk/lib/rtl/amd64/slist.S
@@ -102,7 +102,7 @@ ExpInterlockedPopEntrySList:
mov rax, [rcx]
/* Check for 16 byte SList support */
- cmp byte ptr [RtlpUse16ByteSLists], 0
+ cmp byte ptr [rip+RtlpUse16ByteSLists], 0
jne RtlInterlockedPopEntrySList16
/* Use the 8 byte header */
@@ -233,7 +233,7 @@ ExpInterlockedPushEntrySList:
ExpInterlockedPushEntrySListChecked:
/* Make sure RtlpUse16ByteSLists is initialized */
- cmp byte ptr [RtlpUse16ByteSLists], HEX(FF)
+ cmp byte ptr [rip+RtlpUse16ByteSLists], HEX(FF)
jne ExpInterlockedPushEntrySListChecked2
/* Not initialized, raise an assertion */
int HEX(2C)
@@ -247,7 +247,7 @@ ExpInterlockedPushEntrySListChecked2:
mov r9, [rcx + 8]
/* Check for 16 byte SList support */
- cmp byte ptr [RtlpUse16ByteSLists], 0
+ cmp byte ptr [rip+RtlpUse16ByteSLists], 0
jne RtlInterlockedPushEntrySList16
/* Use the 8 byte header */
@@ -368,7 +368,7 @@ ExpInterlockedFlushSList:
mov rax, [rcx]
/* Check for 16 byte SList support */
- cmp byte ptr [RtlpUse16ByteSLists], 0
+ cmp byte ptr [rip+RtlpUse16ByteSLists], 0
jne RtlInterlockedFlushSList16
/* Use the 8 byte header */