aboutsummaryrefslogtreecommitdiff
path: root/patches/modes_local.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/modes_local.h.patch')
-rw-r--r--patches/modes_local.h.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/modes_local.h.patch b/patches/modes_local.h.patch
new file mode 100644
index 0000000..8f55eed
--- /dev/null
+++ b/patches/modes_local.h.patch
@@ -0,0 +1,21 @@
1--- crypto/modes/modes_local.h.orig Tue Nov 14 10:25:15 2017
2+++ crypto/modes/modes_local.h Sat Jan 19 22:19:23 2019
3@@ -45,14 +45,16 @@
4 asm ("bswapl %0" \
5 : "+r"(ret)); ret; })
6 # elif (defined(__arm__) || defined(__arm)) && !defined(__STRICT_ALIGNMENT)
7-# define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x); \
8+# if (__ARM_ARCH >= 6)
9+# define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x); \
10 asm ("rev %0,%0; rev %1,%1" \
11 : "+r"(hi),"+r"(lo)); \
12 (u64)hi<<32|lo; })
13-# define BSWAP4(x) ({ u32 ret; \
14+# define BSWAP4(x) ({ u32 ret; \
15 asm ("rev %0,%1" \
16 : "=r"(ret) : "r"((u32)(x))); \
17 ret; })
18+# endif
19 # endif
20 #endif
21 #endif