From 8c47095a5744e90b9154b48810f3ef0ce46605a1 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 20 Aug 2017 04:21:24 -0400 Subject: FIX GCC ASM template is the constant 2. %2 is the second positional argument, which is the XSTORE divisor. We want the later. --- padlkrng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'padlkrng.cpp') diff --git a/padlkrng.cpp b/padlkrng.cpp index c6a29035..13a90b75 100644 --- a/padlkrng.cpp +++ b/padlkrng.cpp @@ -33,7 +33,7 @@ void PadlockRNG::GenerateBlock(byte *output, size_t size) __asm__ __volatile__ ( "movl %1, %%edi ;\n" - "movl $2, %%edx ;\n" + "movl %2, %%edx ;\n" ".byte 0x0f, 0xa7, 0xc0 ;\n" "movl %%eax, %0 ;\n" -- cgit v1.2.1