Merge pull request #9714 from philljj/bsdkm_crypto_accel

bsdkm: x86 crypto acceleration support.
This commit is contained in:
Daniel Pouzzner
2026-02-05 16:48:03 -06:00
committed by GitHub
14 changed files with 1539 additions and 66 deletions
+4
View File
@@ -113,7 +113,11 @@
static WC_INLINE void cpuid_set_flags(void)
{
#ifdef WOLFSSL_BSDKM
if (WOLFSSL_ATOMIC_LOAD_UINT(cpuid_flags) == WC_CPUID_INITIALIZER) {
#else
if (WOLFSSL_ATOMIC_LOAD(cpuid_flags) == WC_CPUID_INITIALIZER) {
#endif
cpuid_flags_t new_cpuid_flags = 0,
old_cpuid_flags = WC_CPUID_INITIALIZER;
if (cpuid_flag(1, 0, ECX, 28)) { new_cpuid_flags |= CPUID_AVX1 ; }