diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-12-13 18:30:31 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-12-13 18:30:31 +0100 |
commit | 52004fdfdbe81112294ce060ee986f693e0c6b29 (patch) | |
tree | 34a3315f2bd425bde38029ae09fdf5bac0af8d57 /src/crypto/curve25519.c | |
parent | wg-quick: dumber matching for default routes (diff) | |
download | wireguard-monolithic-historical-52004fdfdbe81112294ce060ee986f693e0c6b29.tar.xz wireguard-monolithic-historical-52004fdfdbe81112294ce060ee986f693e0c6b29.zip |
crypto: compile on UML
We basically just don't use FPU in UML.
Diffstat (limited to '')
-rw-r--r-- | src/crypto/curve25519.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/curve25519.c b/src/crypto/curve25519.c index adf6a0b..1daebfe 100644 --- a/src/crypto/curve25519.c +++ b/src/crypto/curve25519.c @@ -33,7 +33,9 @@ static __always_inline void normalize_secret(u8 secret[CURVE25519_POINT_SIZE]) static bool curve25519_use_avx __read_mostly; void __init curve25519_fpu_init(void) { +#ifndef CONFIG_UML curve25519_use_avx = boot_cpu_has(X86_FEATURE_AVX) && cpu_has_xfeatures(XFEATURE_MASK_SSE | XFEATURE_MASK_YMM, NULL); +#endif } typedef u64 fe[10]; |