Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2021 00:33:39 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b2e306164faa - stable/12 - nehemiah: manually assemble xstore(-rng)
Message-ID:  <202112090033.1B90Xda6078215@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=b2e306164faa10ab0be957378a5344f45f7288de

commit b2e306164faa10ab0be957378a5344f45f7288de
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-20 22:42:05 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-09 00:31:53 +0000

    nehemiah: manually assemble xstore(-rng)
    
    PR:     259218
    
    (cherry picked from commit 362c6d8dec6dfbedc5717e45769042279a1dd3df)
---
 sys/dev/random/nehemiah.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/random/nehemiah.c b/sys/dev/random/nehemiah.c
index c5f42b83d220..6666eca2930e 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112090033.1B90Xda6078215>