unaligned.h 771 B

123456789101112131415161718192021222324252627282930
  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. #ifndef _ASM_ARC_UNALIGNED_H
  9. #define _ASM_ARC_UNALIGNED_H
  10. /* ARC700 can't handle unaligned Data accesses. */
  11. #include <asm-generic/unaligned.h>
  12. #include <asm/ptrace.h>
  13. #ifdef CONFIG_ARC_EMUL_UNALIGNED
  14. int misaligned_fixup(unsigned long address, struct pt_regs *regs,
  15. struct callee_regs *cregs);
  16. #else
  17. static inline int
  18. misaligned_fixup(unsigned long address, struct pt_regs *regs,
  19. struct callee_regs *cregs)
  20. {
  21. /* Not fixed */
  22. return 1;
  23. }
  24. #endif
  25. #endif /* _ASM_ARC_UNALIGNED_H */