summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-05-02 22:22:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-05-02 22:22:28 +0000
commitd172426e82892151f7432e4beb5914e81718e294 (patch)
tree136a3a7d04508e00d424252331d543e711265717
parentad0c6317e4cb4e0127e09722d43cf445b2592c68 (diff)
More use of 64-bit registers which needs to be disabled under OpenBSD.
-rw-r--r--lib/libcrypto/bn/asm/parisc-mont.pl2
-rw-r--r--lib/libcrypto/modes/asm/ghash-parisc.pl2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/libcrypto/bn/asm/parisc-mont.pl b/lib/libcrypto/bn/asm/parisc-mont.pl
index baa19675ac3..fcfdee1f1f8 100644
--- a/lib/libcrypto/bn/asm/parisc-mont.pl
+++ b/lib/libcrypto/bn/asm/parisc-mont.pl
@@ -214,6 +214,7 @@ $code.=<<___;
flddx $idx($np),${fni} ; np[2,3]
___
$code.=<<___ if ($BN_SZ==4);
+#ifndef __OpenBSD__
mtctl $hi0,%cr11 ; $hi0 still holds 31
extrd,u,*= $hi0,%sar,1,$hi0 ; executes on PA-RISC 1.0
b L\$parisc11
@@ -550,6 +551,7 @@ $code.=<<___;
.ALIGN 8
L\$parisc11
+#endif
xmpyu ${fai}L,${fbi},${fab0} ; ap[j]*bp[0]
xmpyu ${fni}L,${fm0}R,${fnm0} ; np[j]*m
ldw -12($xfer),$ablo
diff --git a/lib/libcrypto/modes/asm/ghash-parisc.pl b/lib/libcrypto/modes/asm/ghash-parisc.pl
index 38c5e00a98d..b17ee8858c9 100644
--- a/lib/libcrypto/modes/asm/ghash-parisc.pl
+++ b/lib/libcrypto/modes/asm/ghash-parisc.pl
@@ -117,6 +117,7 @@ L\$pic_gmult
ldi 0xf0,$mask0xf0
___
$code.=<<___ if ($SIZE_T==4);
+#ifndef __OpenBSD__
ldi 31,$rem
mtctl $rem,%cr11
extrd,u,*= $rem,%sar,1,$rem ; executes on PA-RISC 1.0
@@ -215,6 +216,7 @@ $code.=<<___ if ($SIZE_T==4);
nop
L\$parisc1_gmult
+#endif
ldb 15($Xi),$nlo
ldo 12($Htbl),$Hll
ldo 8($Htbl),$Hlh