9
0
Fork 0

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:
Renaud Barbier 2012-08-29 18:13:06 +01:00 committed by Sascha Hauer
parent 3f96b4938c
commit 0f9ca850a5
1 changed files with 16 additions and 0 deletions

View File

@ -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 */