aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat-asm.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-28 13:47:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-28 14:46:57 +0100
commitc45ed5529da5bf646fb7fe55bbe58543165600b9 (patch)
tree723830b76577b398d2258db058eb9f53115d78d6 /src/compat/compat-asm.h
parentcurve25519: modularize dispatch (diff)
downloadwireguard-monolithic-historical-c45ed5529da5bf646fb7fe55bbe58543165600b9.tar.xz
wireguard-monolithic-historical-c45ed5529da5bf646fb7fe55bbe58543165600b9.zip
compat: support RAP in assembly
Diffstat (limited to '')
-rw-r--r--src/compat/compat-asm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/compat/compat-asm.h b/src/compat/compat-asm.h
new file mode 100644
index 0000000..548841d
--- /dev/null
+++ b/src/compat/compat-asm.h
@@ -0,0 +1,15 @@
+/* Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */
+
+#ifndef _WG_COMPATASM_H
+#define _WG_COMPATASM_H
+
+#include <linux/linkage.h>
+#include <linux/kconfig.h>
+
+/* PaX compatibility */
+#if defined(RAP_PLUGIN)
+#undef ENTRY
+#define ENTRY RAP_ENTRY
+#endif
+
+#endif /* _WG_COMPATASM_H */