From 80a7aa24974015bbc801480c63f4c8cdaebe9464 Mon Sep 17 00:00:00 2001
From: XMRig <support@xmrig.com>
Date: Thu, 7 Mar 2019 14:52:40 +0700
Subject: [PATCH] #975 Fixed crash on Linux if used double thread.

---
 src/crypto/asm/cn_main_loop.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/crypto/asm/cn_main_loop.S b/src/crypto/asm/cn_main_loop.S
index c2c08739a..347f0e088 100644
--- a/src/crypto/asm/cn_main_loop.S
+++ b/src/crypto/asm/cn_main_loop.S
@@ -68,6 +68,7 @@ ALIGN(64)
 FN_PREFIX(cnv2_rwz_double_mainloop_asm):
 	sub rsp, 48
 	mov rcx, rdi
+	mov rdx, rsi
 	#include "cn2/cnv2_rwz_double_main_loop.inc"
 	add rsp, 48
 	ret 0