https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3c4a68ec46bb5b723e020e3a223853e5ca65c3bb

commit 3c4a68ec46bb5b723e020e3a223853e5ca65c3bb
Author:     Victor Perevertkin <victor.perevert...@reactos.org>
AuthorDate: Thu Apr 23 07:49:35 2020 +0300
Commit:     Victor Perevertkin <victor.perevert...@reactos.org>
CommitDate: Thu Apr 23 07:49:35 2020 +0300

    [BTRFS] Fix amd64 build
    CORE-16679
---
 drivers/filesystems/btrfs/crc32c-amd64.S | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/filesystems/btrfs/crc32c-amd64.S 
b/drivers/filesystems/btrfs/crc32c-amd64.S
index 3a6c910a32e..adfd988384f 100644
--- a/drivers/filesystems/btrfs/crc32c-amd64.S
+++ b/drivers/filesystems/btrfs/crc32c-amd64.S
@@ -17,15 +17,15 @@
 
 #include <asm.inc>
 
-EXTERN _crctable:QWORD
+EXTERN crctable:QWORD
 
 .code64
 
 
 /* uint32_t __stdcall calc_crc32c_sw(uint32_t seed, uint8_t* msg, uint32_t 
msglen); */
 
-PUBLIC _calc_crc32c_sw@12
-_calc_crc32c_sw@12:
+PUBLIC calc_crc32c_sw
+calc_crc32c_sw:
 
 /* rax = crc / seed
  * rdx = buf
@@ -45,7 +45,8 @@ mov r10b, byte ptr [rdx]
 xor al, r10b
 and rax, 255
 shl rax, 2
-mov rax, dword ptr [_crctable + rax]
+mov r10, offset crctable
+mov eax, dword ptr [r10 + rax]
 xor rax, rcx
 
 inc rdx
@@ -60,8 +61,8 @@ ret
 
 /* uint32_t __stdcall calc_crc32c_hw(uint32_t seed, uint8_t* msg, uint32_t 
msglen); */
 
-PUBLIC _calc_crc32c_hw@12:
-_calc_crc32c_hw@12:
+PUBLIC calc_crc32c_hw
+calc_crc32c_hw:
 
 /* rax = crc / seed
  * rdx = buf

Reply via email to