blob: 6da6b4edaeda56801e31cbd0ef5291bfdbe43d67 [file] [log] [blame]
Vineet Gupta2e651ea2013-01-23 16:30:36 +05301/*
2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#ifndef _ASM_ARC_UNALIGNED_H
10#define _ASM_ARC_UNALIGNED_H
11
12/* ARC700 can't handle unaligned Data accesses. */
13
14#include <asm-generic/unaligned.h>
15#include <asm/ptrace.h>
16
Vineet Gupta1736a562014-09-08 11:18:15 +053017#ifdef CONFIG_ARC_EMUL_UNALIGNED
Vineet Gupta2e651ea2013-01-23 16:30:36 +053018int misaligned_fixup(unsigned long address, struct pt_regs *regs,
Vineet Gupta38a9ff62013-06-12 15:13:40 +053019 struct callee_regs *cregs);
Vineet Gupta2e651ea2013-01-23 16:30:36 +053020#else
21static inline int
22misaligned_fixup(unsigned long address, struct pt_regs *regs,
Vineet Gupta38a9ff62013-06-12 15:13:40 +053023 struct callee_regs *cregs)
Vineet Gupta2e651ea2013-01-23 16:30:36 +053024{
Vineet Gupta07ba69a2013-09-18 18:08:01 +053025 /* Not fixed */
26 return 1;
Vineet Gupta2e651ea2013-01-23 16:30:36 +053027}
28#endif
29
30#endif /* _ASM_ARC_UNALIGNED_H */