summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-04-03 22:59:32 +0300
committerAlexander Graf <agraf@suse.de>2018-06-03 16:27:21 +0300
commitc3b11dea7c9f9bb009cb7358170c47abd1c4a298 (patch)
tree1209493facd75a94acd1e34ead5a23005d420c0e /include/asm-generic
parentfa241e2f19c58d08f2d978f32d133eab24b02a92 (diff)
downloadu-boot-c3b11dea7c9f9bb009cb7358170c47abd1c4a298.tar.xz
efi_loader: allow unaligned memory access
The UEFI spec mandates that unaligned memory access should be enabled if supported by the CPU architecture. This patch adds an empty weak function unaligned_access() that can be overridden by an architecture specific routine. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/unaligned.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-generic/unaligned.h b/include/asm-generic/unaligned.h
index fd0255099a..3d33a5a063 100644
--- a/include/asm-generic/unaligned.h
+++ b/include/asm-generic/unaligned.h
@@ -20,4 +20,7 @@
#error invalid endian
#endif
+/* Allow unaligned memory access */
+void allow_unaligned(void);
+
#endif