diff options
author | Andy Polyakov <appro@openssl.org> | 2005-11-15 08:02:10 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-11-15 08:02:10 +0000 |
commit | 07645deeb8cc203951c1794a0fde54af8f877393 (patch) | |
tree | db625df4eefbcc623a16eabc2dfb90313eafe96a /crypto | |
parent | c52c82ffc1e5427fe16c6ec87fc48f5f0ba61575 (diff) |
Apply "better safe than sorry" approach after addressing sporadic SEGV in
bn_sub_words to the rest of the sparcv8plus.S.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bn/asm/sparcv8plus.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/bn/asm/sparcv8plus.S b/crypto/bn/asm/sparcv8plus.S index 8992928ca8..8c56e2e7e7 100644 --- a/crypto/bn/asm/sparcv8plus.S +++ b/crypto/bn/asm/sparcv8plus.S @@ -162,10 +162,14 @@ * BN_ULONG w; */ bn_mul_add_words: + sra %o2,%g0,%o2 ! signx %o2 brgz,a %o2,.L_bn_mul_add_words_proceed lduw [%o1],%g2 retl clr %o0 + nop + nop + nop .L_bn_mul_add_words_proceed: srl %o3,%g0,%o3 ! clruw %o3 @@ -260,10 +264,14 @@ bn_mul_add_words: * BN_ULONG w; */ bn_mul_words: + sra %o2,%g0,%o2 ! signx %o2 brgz,a %o2,.L_bn_mul_words_proceeed lduw [%o1],%g2 retl clr %o0 + nop + nop + nop .L_bn_mul_words_proceeed: srl %o3,%g0,%o3 ! clruw %o3 @@ -344,10 +352,14 @@ bn_mul_words: * int n; */ bn_sqr_words: + sra %o2,%g0,%o2 ! signx %o2 brgz,a %o2,.L_bn_sqr_words_proceeed lduw [%o1],%g2 retl clr %o0 + nop + nop + nop .L_bn_sqr_words_proceeed: andcc %o2,-4,%g0 |