xref: /kernel/linux/linux-5.10/arch/arc/include/asm/unaligned.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/arc/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _ASM_ARC_UNALIGNED_H
78c2ecf20Sopenharmony_ci#define _ASM_ARC_UNALIGNED_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/* ARC700 can't handle unaligned Data accesses. */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <asm-generic/unaligned.h>
128c2ecf20Sopenharmony_ci#include <asm/ptrace.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#ifdef CONFIG_ARC_EMUL_UNALIGNED
158c2ecf20Sopenharmony_ciint misaligned_fixup(unsigned long address, struct pt_regs *regs,
168c2ecf20Sopenharmony_ci		     struct callee_regs *cregs);
178c2ecf20Sopenharmony_ci#else
188c2ecf20Sopenharmony_cistatic inline int
198c2ecf20Sopenharmony_cimisaligned_fixup(unsigned long address, struct pt_regs *regs,
208c2ecf20Sopenharmony_ci		 struct callee_regs *cregs)
218c2ecf20Sopenharmony_ci{
228c2ecf20Sopenharmony_ci	/* Not fixed */
238c2ecf20Sopenharmony_ci	return 1;
248c2ecf20Sopenharmony_ci}
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif /* _ASM_ARC_UNALIGNED_H */
28

Indexes created Thu Nov 07 10:32:03 CST 2024