Some CPUs advertise RDRAND in CPUID, but return 0xFFFFFFFF unconditionally. To avoid locking up later, test RDRAND during initialization, and if it returns 0xFFFFFFFF, mark it as nonexistent. Also fix a possible segmentation fault in CPUID check. This commit is a squashed backport of the following commits on the master branch: *0e5bbcaa16*4d36b0287d*8086314026
5.2 KiB
5.2 KiB