summaryrefslogtreecommitdiffstats
path: root/crypto/ppccpuid.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-09-10 15:00:51 +0000
committerAndy Polyakov <appro@openssl.org>2010-09-10 15:00:51 +0000
commit6415dd7b2f6f8ecea16891e98f990731078dd57c (patch)
tree78e54a8027f1ec3a084249694f246721a76a37bb /crypto/ppccpuid.pl
parentdd4a0af3701b1669661d62420253ec1e40076e61 (diff)
crypto/ppc[cpuid|cap]: call CPU detection once and detect AltiVec.
Diffstat (limited to 'crypto/ppccpuid.pl')
-rwxr-xr-xcrypto/ppccpuid.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/ppccpuid.pl b/crypto/ppccpuid.pl
index 7e8d233b72..2131d30c1d 100755
--- a/crypto/ppccpuid.pl
+++ b/crypto/ppccpuid.pl
@@ -30,6 +30,12 @@ $code=<<___;
extrdi r0,r0,32,0
blr
+.globl .OPENSSL_altivec_probe
+.align 4
+.OPENSSL_altivec_probe:
+ .long 0x10000484 # vor v0,v0,v0
+ blr
+
.globl .OPENSSL_wipe_cpu
.align 4
.OPENSSL_wipe_cpu: