blob: cf5a02382e0e09b135fb04a9b46c21a7c733a40e [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Vineet Gupta2e651ea2013-01-23 16:30:36 +05302/*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
Vineet Gupta2e651ea2013-01-23 16:30:36 +05304 */
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
Vineet Gupta1736a562014-09-08 11:18:15 +053014#ifdef CONFIG_ARC_EMUL_UNALIGNED
Vineet Gupta2e651ea2013-01-23 16:30:36 +053015int misaligned_fixup(unsigned long address, struct pt_regs *regs,
Vineet Gupta38a9ff62013-06-12 15:13:40 +053016 struct callee_regs *cregs);
Vineet Gupta2e651ea2013-01-23 16:30:36 +053017#else
18static inline int
19misaligned_fixup(unsigned long address, struct pt_regs *regs,
Vineet Gupta38a9ff62013-06-12 15:13:40 +053020 struct callee_regs *cregs)
Vineet Gupta2e651ea2013-01-23 16:30:36 +053021{
Vineet Gupta07ba69a2013-09-18 18:08:01 +053022 /* Not fixed */
23 return 1;
Vineet Gupta2e651ea2013-01-23 16:30:36 +053024}
25#endif
26
27#endif /* _ASM_ARC_UNALIGNED_H */