summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-02-08 18:09:47 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2017-02-08 18:09:47 (GMT)
commit8f13bd7b78198224eeec2d33887c63a9532ddaa1 (patch)
tree79fc8dbf10f5c28de5800ea56c2f27e6bd1b37af
parent90c909567a6de54962de0fc4decc527e37f6cda1 (diff)
downloadtoolchains-8f13bd7b78198224eeec2d33887c63a9532ddaa1.tar.gz
toolchains-8f13bd7b78198224eeec2d33887c63a9532ddaa1.tar.bz2
OpenSSL 1.0.x does not have PPC_FPU
-rw-r--r--sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p10
1 files changed, 5 insertions, 5 deletions
diff --git a/sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p b/sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p
index e231885..eaaab73 100644
--- a/sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p
+++ b/sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p
@@ -1,5 +1,5 @@
---- /home/chris/netsurf/toolchains/sdk/builddir-ppc-amigaos/openssl/openssl-1.0.2k/crypto/ppccap.c 2017-01-26 13:22:03.000000000 +0000
-+++ ppccap.c 2017-02-08 17:33:45.674017881 +0000
+--- crypto/ppccap.c 2017-01-26 13:22:03.000000000 +0000
++++ crypto/ppccap.c 2017-02-08 17:48:09.982015412 +0000
@@ -73,6 +73,7 @@ void sha512_block_data_order(void *ctx,
sha512_block_ppc(ctx, inp, len);
}
@@ -18,15 +18,15 @@
+{
+ uint32 family, vec;
+
-+ GetCPUInfoTags(GCIT_Family, &family, GCIT_VectorUnit, &vec, TAG_DONE);
++ IExec->GetCPUInfoTags(GCIT_Family, &family, GCIT_VectorUnit, &vec, TAG_DONE);
+
-+ OPENSSL_ppccap_P = PPC_FPU;
++ OPENSSL_ppccap_P = 0; //PPC_FPU
+
+ if((family == CPUFAMILY_PA6T) || (family == CPUFAMILY_E5500))
+ OPENSSL_ppccap_P |= PPC_FPU64;
+
+ if((vec == VECTORTYPE_ALTIVEC) &&
-+ ((SysBase->lib_Version == 51 && SysBase->lib_Revision >= 12) || SysBase->lib_Version > 51))
++ (LIB_IS_AT_LEAST(SysBase, 51, 12)))
+ {
+ OPENSSL_ppccap_P |= PPC_ALTIVEC;
+ }