diff options
Diffstat (limited to 'kernel/arch/avr32/include/asm/unaligned.h')
-rw-r--r-- | kernel/arch/avr32/include/asm/unaligned.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/arch/avr32/include/asm/unaligned.h b/kernel/arch/avr32/include/asm/unaligned.h new file mode 100644 index 000000000..041877290 --- /dev/null +++ b/kernel/arch/avr32/include/asm/unaligned.h @@ -0,0 +1,21 @@ +#ifndef _ASM_AVR32_UNALIGNED_H +#define _ASM_AVR32_UNALIGNED_H + +/* + * AVR32 can handle some unaligned accesses, depending on the + * implementation. The AVR32 AP implementation can handle unaligned + * words, but halfwords must be halfword-aligned, and doublewords must + * be word-aligned. + * + * However, swapped word loads must be word-aligned so we can't + * optimize word loads in general. + */ + +#include <linux/unaligned/be_struct.h> +#include <linux/unaligned/le_byteshift.h> +#include <linux/unaligned/generic.h> + +#define get_unaligned __get_unaligned_be +#define put_unaligned __put_unaligned_be + +#endif /* _ASM_AVR32_UNALIGNED_H */ |