unaligned.h 905 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Xtensa doesn't handle unaligned accesses efficiently.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2001 - 2005 Tensilica Inc.
  9. */
  10. #ifndef _ASM_XTENSA_UNALIGNED_H
  11. #define _ASM_XTENSA_UNALIGNED_H
  12. #ifdef __XTENSA_EL__
  13. # include <linux/unaligned/le_memmove.h>
  14. # include <linux/unaligned/be_byteshift.h>
  15. # include <linux/unaligned/generic.h>
  16. # define get_unaligned __get_unaligned_le
  17. # define put_unaligned __put_unaligned_le
  18. #elif defined(__XTENSA_EB__)
  19. # include <linux/unaligned/be_memmove.h>
  20. # include <linux/unaligned/le_byteshift.h>
  21. # include <linux/unaligned/generic.h>
  22. # define get_unaligned __get_unaligned_be
  23. # define put_unaligned __put_unaligned_be
  24. #else
  25. # error processor byte order undefined!
  26. #endif
  27. #endif /* _ASM_XTENSA_UNALIGNED_H */