ppc: add unaligned support
This file is copied from Linux 2.6.39. It is added so that the P2020RDB can still build. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
3f96b4938c
commit
0f9ca850a5
|
@ -0,0 +1,16 @@
|
|||
#ifndef _ASM_PPC_UNALIGNED_H
|
||||
#define _ASM_PPC_UNALIGNED_H
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
/*
|
||||
* The PowerPC can do unaligned accesses itself in big endian mode.
|
||||
*/
|
||||
#include <linux/unaligned/access_ok.h>
|
||||
#include <linux/unaligned/generic.h>
|
||||
|
||||
#define get_unaligned __get_unaligned_be
|
||||
#define put_unaligned __put_unaligned_be
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _ASM_PPC_UNALIGNED_H */
|
Loading…
Reference in New Issue