diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-02 22:22:28 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-02 22:22:28 +0000 |
commit | 7c21021be7bb0adf615c6e07a46ba76bfab5a88d (patch) | |
tree | 45e8e51ec10acbda0c0c65cb3735a1b1ebe86297 | |
parent | 8a5a73b039816a5ae5c3f48f5bc4888892bde52c (diff) |
More use of 64-bit registers which needs to be disabled under OpenBSD.
-rw-r--r-- | lib/libssl/src/crypto/bn/asm/parisc-mont.pl | 2 | ||||
-rw-r--r-- | lib/libssl/src/crypto/modes/asm/ghash-parisc.pl | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/libssl/src/crypto/bn/asm/parisc-mont.pl b/lib/libssl/src/crypto/bn/asm/parisc-mont.pl index baa19675ac3..fcfdee1f1f8 100644 --- a/lib/libssl/src/crypto/bn/asm/parisc-mont.pl +++ b/lib/libssl/src/crypto/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/libssl/src/crypto/modes/asm/ghash-parisc.pl b/lib/libssl/src/crypto/modes/asm/ghash-parisc.pl index 38c5e00a98d..b17ee8858c9 100644 --- a/lib/libssl/src/crypto/modes/asm/ghash-parisc.pl +++ b/lib/libssl/src/crypto/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 |