Skip to content
Snippets Groups Projects
Commit 20938e54 authored by Simon Kagstrom's avatar Simon Kagstrom Committed by Wolfgang Denk
Browse files

Add unaligned.h for arm


This patch adds unaligned.h for ARM (needed to build with LZO
compression). The file is taken from the linux kernel, but includes
u-boot headers instead.

Signed-off-by: default avatarSimon Kagstrom <simon.kagstrom@netinsight.net>
Acked-by: default avatarStefan Roese <sr@denx.de>
parent 433ea8ab
No related branches found
No related tags found
No related merge requests found
#ifndef _ASM_ARM_UNALIGNED_H
#define _ASM_ARM_UNALIGNED_H
#include <linux/unaligned/access_ok.h>
#include <linux/unaligned/generic.h>
/*
* Select endianness
*/
#ifndef __ARMEB__
#define get_unaligned __get_unaligned_le
#define put_unaligned __put_unaligned_le
#else
#define get_unaligned __get_unaligned_be
#define put_unaligned __put_unaligned_be
#endif
#endif /* _ASM_ARM_UNALIGNED_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment