unaligned.h 625 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  4. */
  5. #ifndef _ASM_ARC_UNALIGNED_H
  6. #define _ASM_ARC_UNALIGNED_H
  7. /* ARC700 can't handle unaligned Data accesses. */
  8. #include <asm-generic/unaligned.h>
  9. #include <asm/ptrace.h>
  10. #ifdef CONFIG_ARC_EMUL_UNALIGNED
  11. int misaligned_fixup(unsigned long address, struct pt_regs *regs,
  12. struct callee_regs *cregs);
  13. #else
  14. static inline int
  15. misaligned_fixup(unsigned long address, struct pt_regs *regs,
  16. struct callee_regs *cregs)
  17. {
  18. /* Not fixed */
  19. return 1;
  20. }
  21. #endif
  22. #endif /* _ASM_ARC_UNALIGNED_H */