https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6f000979eb2ffef8844494ba52a7b7ca677ab615

commit 6f000979eb2ffef8844494ba52a7b7ca677ab615
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Wed Apr 21 19:46:30 2021 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Wed Apr 28 13:10:23 2021 +0200

    [BTRFS] Use addressing relative to RIP
---
 drivers/filesystems/btrfs/crc32c-amd64.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/filesystems/btrfs/crc32c-amd64.S 
b/drivers/filesystems/btrfs/crc32c-amd64.S
index adfd988384f..dbe035487c7 100644
--- a/drivers/filesystems/btrfs/crc32c-amd64.S
+++ b/drivers/filesystems/btrfs/crc32c-amd64.S
@@ -45,7 +45,7 @@ mov r10b, byte ptr [rdx]
 xor al, r10b
 and rax, 255
 shl rax, 2
-mov r10, offset crctable
+lea r10, [rip+crctable]
 mov eax, dword ptr [r10 + rax]
 xor rax, rcx
 

Reply via email to