[openssl.org #3125] [PATCH 1.0.1e] openssl/crypto/armcap.c: fix a typo in OPENSSL_rdtsc

2013-09-12 Thread Kyle McMartin via RT
a | 1 is always true, regardless of OPENSSL_armcap_P, and mrc cp15 will fail on <= v6. --- a/crypto/armcap.c +++ b/crypto/armcap.c @@ -23,7 +23,7 @@ unsigned int _armv7_tick(void); unsigned int OPENSSL_rdtsc(void) { - if (OPENSSL_armcap_P|ARMV7_TICK) + if (OPENSSL_armcap_P &

[openssl.org #3126] [PATCH 1.0.1e] armcap.c: use getauxv on glibc to find caps

2013-09-12 Thread Kyle McMartin via RT
More reliable than playing games with signal handling in libraries. --- a/crypto/armcap.c +++ b/crypto/armcap.c @@ -9,11 +9,6 @@ unsigned int OPENSSL_armcap_P; -static sigset_t all_masked; - -static sigjmp_buf ill_jmp; -static void ill_handler (int sig) { siglongjmp(ill_jmp,sig); } - /* *

[PATCH] armcap.c: use getauxv on glibc to find caps

2013-09-12 Thread Kyle McMartin
More reliable than playing games with signal handling in libraries. --- a/crypto/armcap.c +++ b/crypto/armcap.c @@ -9,11 +9,6 @@ unsigned int OPENSSL_armcap_P; -static sigset_t all_masked; - -static sigjmp_buf ill_jmp; -static void ill_handler (int sig) { siglongjmp(ill_jmp,sig); } - /* *

[PATCH] openssl/crypto/armcap.c: fix a typo in OPENSSL_rdtsc

2013-09-12 Thread Kyle McMartin
a | 1 is always true, regardless of OPENSSL_armcap_P, and mrc cp15 will fail on <= v6. --- a/crypto/armcap.c +++ b/crypto/armcap.c @@ -23,7 +23,7 @@ unsigned int _armv7_tick(void); unsigned int OPENSSL_rdtsc(void) { - if (OPENSSL_armcap_P|ARMV7_TICK) + if (OPENSSL_armcap_P &