summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p
diff options
context:
space:
mode:
Diffstat (limited to 'sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p')
-rw-r--r--sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p15
1 files changed, 10 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 b6ece1e..46d6213 100644
--- a/sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p
+++ b/sdk/recipes/patches/openssl/ppc-amigaos/crypto.ppccap.c.p
@@ -1,15 +1,15 @@
--- crypto/ppccap.c.orig 2017-11-22 13:14:44.655536374 +0000
+++ crypto/ppccap.c 2017-11-22 13:16:03.666387174 +0000
-@@ -135,6 +135,8 @@
- }
- #endif
+@@ -34,6 +34,8 @@
+
+ static sigset_t all_masked;
+#ifndef OPENSSL_SYS_AMIGAOS4
+
static sigjmp_buf ill_jmp;
static void ill_handler(int sig)
{
-@@ -341,3 +343,24 @@
+@@ -309,3 +311,29 @@
sigaction(SIGILL, &ill_oact, NULL);
sigprocmask(SIG_SETMASK, &oset, NULL);
}
@@ -22,7 +22,7 @@
+
+ IExec->GetCPUInfoTags(GCIT_Family, &family, GCIT_VectorUnit, &vec, TAG_DONE);
+
-+ OPENSSL_ppccap_P = 0; //PPC_FPU
++ OPENSSL_ppccap_P = PPC_FPU;
+
+ if((family == CPUFAMILY_PA6T) || (family == CPUFAMILY_E5500))
+ OPENSSL_ppccap_P |= PPC_FPU64;
@@ -33,4 +33,9 @@
+ OPENSSL_ppccap_P |= PPC_ALTIVEC;
+ }
+}
++
++uint32_t OPENSSL_rdtsc(void)
++{
++ return 0;
++}
+#endif