David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _ASM_ARC_UNALIGNED_H |
| 7 | #define _ASM_ARC_UNALIGNED_H |
| 8 | |
| 9 | /* ARC700 can't handle unaligned Data accesses. */ |
| 10 | |
| 11 | #include <asm-generic/unaligned.h> |
| 12 | #include <asm/ptrace.h> |
| 13 | |
| 14 | #ifdef CONFIG_ARC_EMUL_UNALIGNED |
| 15 | int misaligned_fixup(unsigned long address, struct pt_regs *regs, |
| 16 | struct callee_regs *cregs); |
| 17 | #else |
| 18 | static inline int |
| 19 | misaligned_fixup(unsigned long address, struct pt_regs *regs, |
| 20 | struct callee_regs *cregs) |
| 21 | { |
| 22 | /* Not fixed */ |
| 23 | return 1; |
| 24 | } |
| 25 | #endif |
| 26 | |
| 27 | #endif /* _ASM_ARC_UNALIGNED_H */ |