diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-12-07 15:45:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-12-07 15:45:45 +0000 |
commit | 64e518013e63e470abd799de5795c4c806532c1e (patch) | |
tree | 8a019c71ad2a1302adac817e1f6c517873957045 /lib | |
parent | 8372f166302b0654e0aca4b2e464c1b5a1b77600 (diff) |
Revert to the use of C code for the basic BN routines (bn_add_words,
bn_div_words, bn_mul_add_words, bn_mul_words, bn_sqr_words, bn_sub_words)
on sgi, because the generated assembly code isn't R4000-safe.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/crypto/arch/mips64/Makefile.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libcrypto/crypto/arch/mips64/Makefile.inc b/lib/libcrypto/crypto/arch/mips64/Makefile.inc index 3b8f01e41cc..b6fc8971e7b 100644 --- a/lib/libcrypto/crypto/arch/mips64/Makefile.inc +++ b/lib/libcrypto/crypto/arch/mips64/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.3 2014/11/17 20:31:22 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.4 2014/12/07 15:45:44 miod Exp $ # mips64-specific libcrypto build rules @@ -9,9 +9,14 @@ SSLASM+= aes aes-mips aes-mips # bf SRCS+= bf_enc.c # bn +.if ${MACHINE} == "sgi" # because of R4000 support +SRCS+= bn_asm.c +.else SSLASM+= bn mips bn-mips +CFLAGS+= -DBN_DIV3W +.endif SSLASM+= bn mips-mont mips-mont -CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV3W +CFLAGS+= -DOPENSSL_BN_ASM_MONT # camellia SRCS+= camellia.c cmll_cbc.c cmll_misc.c # des |