summaryrefslogtreecommitdiff
path: root/padlkrng.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-20 04:21:24 -0400
committerJeffrey Walton <noloader@gmail.com>2017-08-20 04:21:24 -0400
commit8c47095a5744e90b9154b48810f3ef0ce46605a1 (patch)
tree941ff19b782eb9a1842aefe36464ac6df295c2fb /padlkrng.cpp
parent61c8b7495199d8c9e5579381ac8a283dc656c68d (diff)
downloadcryptopp-git-8c47095a5744e90b9154b48810f3ef0ce46605a1.tar.gz
FIX GCC ASM template
is the constant 2. %2 is the second positional argument, which is the XSTORE divisor. We want the later.
Diffstat (limited to 'padlkrng.cpp')
-rw-r--r--padlkrng.cpp2
1 files changed, 1 insertions, 1 deletions
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"