aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-10-20 22:42:05 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-10-28 00:35:54 +0000
commit5306ca9a8e2f2b3bfa7d1ebc784dedbd5422fdae (patch)
tree5bfb8ee74138e005330a1a3d282dbfd79ab1d277
parent7a3d7b9efc3373e439bccf234fd4fadd2af9a75f (diff)
downloadsrc-5306ca9a8e2f2b3bfa7d1ebc784dedbd5422fdae.tar.gz
src-5306ca9a8e2f2b3bfa7d1ebc784dedbd5422fdae.zip
nehemiah: manually assemble xstore(-rng)
PR: 259218 (cherry picked from commit 362c6d8dec6dfbedc5717e45769042279a1dd3df)
-rw-r--r--sys/dev/random/nehemiah.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/nehemiah.c b/sys/dev/random/nehemiah.c
index ba0dfb200ba0..3ad18005c935 100644
--- a/sys/dev/random/nehemiah.c
+++ b/sys/dev/random/nehemiah.c
@@ -68,7 +68,7 @@ VIA_RNG_store(void *buf)
#ifdef __GNUCLIKE_ASM
__asm __volatile(
"movl $0,%%edx\n\t"
- "xstore"
+ ".byte 0x0f, 0xa7, 0xc0"
: "=a" (retval), "+d" (rate), "+D" (buf)
:
: "memory"