Refactor CPUID code
authorRichard Levitte <levitte@openssl.org>
Wed, 11 Mar 2020 16:38:46 +0000 (17:38 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 2 Apr 2021 14:39:13 +0000 (16:39 +0200)
commitef83daf4dadf9380a3b94618fb7aee75fcd9a6b1
tree400484b1395d5a606fda8e9382ee213134dcfc45
parentbaf02793fc5b5095ad8929b8e2aae679e113f457
Refactor CPUID code

We were using CPUID coded in several modules, but it was unclear how
it actually got there, and could fail randomly.

To remedy that, this change separates the CPUID C code from the rest
of cryptlib.c, and ensures the right modules get both that and the
assembler sources explicitly.

Fixes #11281

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14755)
crypto/build.info
crypto/cpuid.c [new file with mode: 0644]
crypto/cryptlib.c