Merge tag 'master-2014-11-25' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...
[deliverable/linux.git] / arch / arc / include / asm / unaligned.h
CommitLineData
2e651ea1
VG
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
1736a56f 17#ifdef CONFIG_ARC_EMUL_UNALIGNED
2e651ea1 18int misaligned_fixup(unsigned long address, struct pt_regs *regs,
38a9ff6d 19 struct callee_regs *cregs);
2e651ea1
VG
20#else
21static inline int
22misaligned_fixup(unsigned long address, struct pt_regs *regs,
38a9ff6d 23 struct callee_regs *cregs)
2e651ea1 24{
07ba69a4
VG
25 /* Not fixed */
26 return 1;
2e651ea1
VG
27}
28#endif
29
30#endif /* _ASM_ARC_UNALIGNED_H */
This page took 0.109157 seconds and 5 git commands to generate.