Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 1 | /* |
| 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 Gupta | 1736a56 | 2014-09-08 11:18:15 +0530 | [diff] [blame] | 17 | #ifdef CONFIG_ARC_EMUL_UNALIGNED |
Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 18 | int misaligned_fixup(unsigned long address, struct pt_regs *regs, |
Vineet Gupta | 38a9ff6 | 2013-06-12 15:13:40 +0530 | [diff] [blame] | 19 | struct callee_regs *cregs); |
Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 20 | #else |
| 21 | static inline int |
| 22 | misaligned_fixup(unsigned long address, struct pt_regs *regs, |
Vineet Gupta | 38a9ff6 | 2013-06-12 15:13:40 +0530 | [diff] [blame] | 23 | struct callee_regs *cregs) |
Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 24 | { |
Vineet Gupta | 07ba69a | 2013-09-18 18:08:01 +0530 | [diff] [blame] | 25 | /* Not fixed */ |
| 26 | return 1; |
Vineet Gupta | 2e651ea | 2013-01-23 16:30:36 +0530 | [diff] [blame] | 27 | } |
| 28 | #endif |
| 29 | |
| 30 | #endif /* _ASM_ARC_UNALIGNED_H */ |