aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-03-16 19:38:59 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-03-19 23:11:31 +0100
commit74957884685c3c3df9ef9540d2ff517017497a89 (patch)
tree271fcd34a9b21471420f957249ff67cb5963b318 /src/compat
parentconfig: satisfy sparse (diff)
downloadwireguard-monolithic-historical-74957884685c3c3df9ef9540d2ff517017497a89.tar.xz
wireguard-monolithic-historical-74957884685c3c3df9ef9540d2ff517017497a89.zip
blake2s: add AVX implementation
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/Kbuild.include4
-rw-r--r--src/compat/i387/include/asm/fpu/api.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include
index 905e268..769477c 100644
--- a/src/compat/Kbuild.include
+++ b/src/compat/Kbuild.include
@@ -9,3 +9,7 @@ ifeq ($(wildcard $(srctree)/include/net/dst_cache.h),)
ccflags-y += -I$(src)/compat/dst_cache/include
wireguard-y += compat/dst_cache/dst_cache.o
endif
+
+ifeq ($(wildcard $(srctree)/arch/x86/include/asm/fpu/api.h),)
+ccflags-y += -I$(src)/compat/i387/include
+endif
diff --git a/src/compat/i387/include/asm/fpu/api.h b/src/compat/i387/include/asm/fpu/api.h
new file mode 100644
index 0000000..f3f9117
--- /dev/null
+++ b/src/compat/i387/include/asm/fpu/api.h
@@ -0,0 +1 @@
+#include <asm/i387.h>