Linux Audio

Check our new training course

Loading...
v6.8
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
 
 
 
 
 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
15int misaligned_fixup(unsigned long address, struct pt_regs *regs,
16		     struct callee_regs *cregs);
17#else
18static inline int
19misaligned_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 */
v3.15
 
 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
17#ifdef CONFIG_ARC_MISALIGN_ACCESS
18int misaligned_fixup(unsigned long address, struct pt_regs *regs,
19		     struct callee_regs *cregs);
20#else
21static inline int
22misaligned_fixup(unsigned long address, struct pt_regs *regs,
23		 struct callee_regs *cregs)
24{
25	/* Not fixed */
26	return 1;
27}
28#endif
29
30#endif /* _ASM_ARC_UNALIGNED_H */