mirror of https://github.com/openssl/openssl.git
Print PowerPC CPUINFO
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/28535)
This commit is contained in:
parent
a9a0f7dc9c
commit
03a9584499
|
@ -23,6 +23,9 @@
|
||||||
#if defined(__arm__) || defined(__arm) || defined(__aarch64__)
|
#if defined(__arm__) || defined(__arm) || defined(__aarch64__)
|
||||||
# include "arm_arch.h"
|
# include "arm_arch.h"
|
||||||
# define CPU_INFO_STR_LEN 128
|
# define CPU_INFO_STR_LEN 128
|
||||||
|
#elif defined(__powerpc__) || defined(__POWERPC__) || defined(_ARCH_PPC)
|
||||||
|
# include "crypto/ppc_arch.h"
|
||||||
|
# define CPU_INFO_STR_LEN 128
|
||||||
#elif defined(__s390__) || defined(__s390x__)
|
#elif defined(__s390__) || defined(__s390x__)
|
||||||
# include "s390x_arch.h"
|
# include "s390x_arch.h"
|
||||||
# define CPU_INFO_STR_LEN 2048
|
# define CPU_INFO_STR_LEN 2048
|
||||||
|
@ -77,6 +80,15 @@ DEFINE_RUN_ONCE_STATIC(init_info_strings)
|
||||||
BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str),
|
BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str),
|
||||||
sizeof(ossl_cpu_info_str) - strlen(ossl_cpu_info_str),
|
sizeof(ossl_cpu_info_str) - strlen(ossl_cpu_info_str),
|
||||||
" env:%s", env);
|
" env:%s", env);
|
||||||
|
# elif defined(__powerpc__) || defined(__POWERPC__) || defined(_ARCH_PPC)
|
||||||
|
const char *env;
|
||||||
|
|
||||||
|
BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str),
|
||||||
|
CPUINFO_PREFIX "OPENSSL_ppccap=0x%x", OPENSSL_ppccap_P);
|
||||||
|
if ((env = getenv("OPENSSL_ppccap")) != NULL)
|
||||||
|
BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str),
|
||||||
|
sizeof(ossl_cpu_info_str) - strlen(ossl_cpu_info_str),
|
||||||
|
" env:%s", env);
|
||||||
# elif defined(__s390__) || defined(__s390x__)
|
# elif defined(__s390__) || defined(__s390x__)
|
||||||
const char *env;
|
const char *env;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue