From c8f370485c43729db44b680e41e875ddd7f3108c Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Thu, 17 Jan 2019 15:15:57 +0100 Subject: PPC: Try out if mftb works before using it If this fails try out if mfspr268 works. Use OPENSSL_ppccap=0x20 for enabling mftb, OPENSSL_ppccap=0x40 for enabling mfspr268, and OPENSSL_ppccap=0 for enabling neither. Fixes #8012 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/8043) --- crypto/cryptlib.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crypto/cryptlib.c') diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 9cf264b720..9018358f31 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -460,4 +460,14 @@ uint32_t OPENSSL_rdtsc(void) { return 0; } + +size_t OPENSSL_instrument_bus(unsigned int *out, size_t cnt) +{ + return 0; +} + +size_t OPENSSL_instrument_bus2(unsigned int *out, size_t cnt, size_t max) +{ + return 0; +} #endif -- cgit v1.2.3