diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2017-02-04 12:48:57 +0200 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2017-02-04 12:48:57 +0200 |
commit | c67c728478e8f47b6e8296b643fd35d66d4a1052 (patch) | |
tree | 6ca3208a866d0ccd9400cb07bb3d31e4dcae01ef /random/rndhw.c | |
parent | 4b7451d3e8e7b87d8e407fbbd924ad5b13bd0f00 (diff) | |
download | libgcrypt-c67c728478e8f47b6e8296b643fd35d66d4a1052.tar.gz |
rndhw: add missing "memory" clobbers
* random/rndhw.c: (poll_padlock, rdrand_long): Add "memory" to asm
clobbers.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'random/rndhw.c')
-rw-r--r-- | random/rndhw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/random/rndhw.c b/random/rndhw.c index 063c25a1..e3a78615 100644 --- a/random/rndhw.c +++ b/random/rndhw.c @@ -76,7 +76,7 @@ poll_padlock (void (*add)(const void*, size_t, enum random_origins), ".byte 0x0f, 0xa7, 0xc0\n\t" /* XSTORE RNG. */ : "=a" (status) : "g" (p) - : "%rdx", "%rdi", "cc" + : "%rdx", "%rdi", "cc", "memory" ); #else asm volatile @@ -85,7 +85,7 @@ poll_padlock (void (*add)(const void*, size_t, enum random_origins), ".byte 0x0f, 0xa7, 0xc0\n\t" /* XSTORE RNG. */ : "=a" (status) : "g" (p) - : "%edx", "%edi", "cc" + : "%edx", "%edi", "cc", "memory" ); #endif if ((status & (1<<6)) /* RNG still enabled. */ @@ -139,7 +139,7 @@ rdrand_long (volatile unsigned long *v) "2:" : "=r" (ok), "=a" (*v) : "0" (RDRAND_RETRY_LOOPS) - : "cc"); + : "cc", "memory"); return ok; } |