diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-28 13:47:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-28 14:46:57 +0100 |
commit | c45ed5529da5bf646fb7fe55bbe58543165600b9 (patch) | |
tree | 723830b76577b398d2258db058eb9f53115d78d6 /src/compat/compat-asm.h | |
parent | curve25519: modularize dispatch (diff) | |
download | wireguard-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.h | 15 |
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 */ |