Comments (2)
I found that rngCPUID(info, 7); is translated with GCC compiler to instruction
__asm__ __volatile__ ("cpuid\n\t" : "=a" (info[0]), "=b" (info[1]), "=c" (info[2]), "=d" (info[3]) : "0" (7));
But we need to set both registers EAX=7 and ECX=0 for RDSEED checking by CPUID:
__asm__ __volatile__ ("cpuid" : "=a" (info[0]), "=b" (info[1]), "=c" (info[2]), "=d" (info[3]) : "0" (7), "2" (0));
Last instruction works on AMD Ryzen 5 5600H and Linux kernel 5.4.0-131-generic (/proc/cpuinfo
command reports presence of rdseed
)
from bee2.
Problem with rngCPUID was fixed in 8bf5523 .
from bee2.
Related Issues (13)
- no such instruction: `rdseed %esi' HOT 1
- Некорректное использование cpuid для проверки поддержки rdrand, rdseed. HOT 1
- Support RDRAND on AMD Ryzen CPU HOT 1
- Tests fail when building on Fedora Linux with GCC 13 HOT 3
- Invalid lock operation within rngCreate HOT 1
- License HOT 1
- BeltTest fails on S390x HOT 4
- Недостижимый код в zzExGCD(), zzDivMod() HOT 1
- Tests of bee2cmd fail on Linux HOT 1
- SIgnature verify failed HOT 1
- Null pointer dereference / possible sensitive data leakage HOT 1
- Memory leak in botpOCRARand and botpOCRAVerify HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bee2.