unaligned.h 797 B

1234567891011121314151617181920212223242526272829
  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_MISALIGN_ACCESS
  14. int misaligned_fixup(unsigned long address, struct pt_regs *regs,
  15. unsigned long cause, struct callee_regs *cregs);
  16. #else
  17. static inline int
  18. misaligned_fixup(unsigned long address, struct pt_regs *regs,
  19. unsigned long cause, struct callee_regs *cregs)
  20. {
  21. return 0;
  22. }
  23. #endif
  24. #endif /* _ASM_ARC_UNALIGNED_H */