~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to arch/powerpc/include/asm/unaligned.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#ifdef __KERNEL__
5
5
 
6
6
/*
7
 
 * The PowerPC can do unaligned accesses itself in big endian mode.
 
7
 * The PowerPC can do unaligned accesses itself based on its endian mode.
8
8
 */
9
9
#include <linux/unaligned/access_ok.h>
10
10
#include <linux/unaligned/generic.h>
11
11
 
 
12
#ifdef __LITTLE_ENDIAN__
 
13
#define get_unaligned   __get_unaligned_le
 
14
#define put_unaligned   __put_unaligned_le
 
15
#else
12
16
#define get_unaligned   __get_unaligned_be
13
17
#define put_unaligned   __put_unaligned_be
 
18
#endif
14
19
 
15
20
#endif  /* __KERNEL__ */
16
21
#endif  /* _ASM_POWERPC_UNALIGNED_H */