aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/unaligned.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/unaligned.h')
-rw-r--r--arch/xtensa/include/asm/unaligned.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/unaligned.h b/arch/xtensa/include/asm/unaligned.h
new file mode 100644
index 00000000000..8e7ed046bfe
--- /dev/null
+++ b/arch/xtensa/include/asm/unaligned.h
@@ -0,0 +1,29 @@
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
13#include <asm/byteorder.h>
14
15#ifdef __LITTLE_ENDIAN
16# include <linux/unaligned/le_struct.h>
17# include <linux/unaligned/be_byteshift.h>
18# include <linux/unaligned/generic.h>
19# define get_unaligned __get_unaligned_le
20# define put_unaligned __put_unaligned_le
21#else
22# include <linux/unaligned/be_struct.h>
23# include <linux/unaligned/le_byteshift.h>
24# include <linux/unaligned/generic.h>
25# define get_unaligned __get_unaligned_be
26# define put_unaligned __put_unaligned_be
27#endif
28
29#endif /* _ASM_XTENSA_UNALIGNED_H */