Skip to content

Commit

Permalink
Fix the code used to detect aarch64 capabilities when we don't have g…
Browse files Browse the repository at this point in the history
…etauxval()

In addition to a missing prototype there was also a missing closing brace '}'.

Fixes #19825.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #19833)
  • Loading branch information
tom-cosgrove-arm authored and t8m committed Dec 6, 2022
1 parent 25d02f3 commit f97ddfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/armcap.c
Expand Up @@ -76,6 +76,7 @@ void _armv8_pmull_probe(void);
# ifdef __aarch64__
void _armv8_sm3_probe(void);
void _armv8_sm4_probe(void);
void _armv8_eor3_probe(void);
void _armv8_sha512_probe(void);
unsigned int _armv8_cpuid_probe(void);
void _armv8_sve_probe(void);
Expand Down Expand Up @@ -354,6 +355,7 @@ void OPENSSL_cpuid_setup(void)
if (sigsetjmp(ill_jmp, 1) == 0) {
_armv8_sm3_probe();
OPENSSL_armcap_P |= ARMV8_SM3;
}
if (sigsetjmp(ill_jmp, 1) == 0) {
_armv8_eor3_probe();
OPENSSL_armcap_P |= ARMV8_SHA3;
Expand Down

0 comments on commit f97ddfc

Please sign in to comment.