summaryrefslogtreecommitdiff
path: root/arch/arc/kernel/unaligned.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/kernel/unaligned.h')
-rw-r--r--arch/arc/kernel/unaligned.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arc/kernel/unaligned.h b/arch/arc/kernel/unaligned.h
new file mode 100644
index 000000000000..5244453bb85f
--- /dev/null
+++ b/arch/arc/kernel/unaligned.h
@@ -0,0 +1,16 @@
+struct pt_regs;
+struct callee_regs;
+
+#ifdef CONFIG_ARC_EMUL_UNALIGNED
+int misaligned_fixup(unsigned long address, struct pt_regs *regs,
+ struct callee_regs *cregs);
+#else
+static inline int
+misaligned_fixup(unsigned long address, struct pt_regs *regs,
+ struct callee_regs *cregs)
+{
+ /* Not fixed */
+ return 1;
+}
+#endif
+