Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
0004  */
0005 
0006 #ifndef _ASM_ARC_UNALIGNED_H
0007 #define _ASM_ARC_UNALIGNED_H
0008 
0009 /* ARC700 can't handle unaligned Data accesses. */
0010 
0011 #include <asm-generic/unaligned.h>
0012 #include <asm/ptrace.h>
0013 
0014 #ifdef CONFIG_ARC_EMUL_UNALIGNED
0015 int misaligned_fixup(unsigned long address, struct pt_regs *regs,
0016              struct callee_regs *cregs);
0017 #else
0018 static inline int
0019 misaligned_fixup(unsigned long address, struct pt_regs *regs,
0020          struct callee_regs *cregs)
0021 {
0022     /* Not fixed */
0023     return 1;
0024 }
0025 #endif
0026 
0027 #endif /* _ASM_ARC_UNALIGNED_H */