diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:43:49 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:43:49 -0400 |
commit | 1d6ae775d7a948c9575658eb41184fd2e506c0df (patch) | |
tree | 8128a28e89d82f13bb8e3a2160382240c66e2816 /include/asm-powerpc/unaligned.h | |
parent | 739cdbf1d8f0739b80035b80d69d871e33749b86 (diff) | |
parent | caf39e87cc1182f7dae84eefc43ca14d54c78ef9 (diff) |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'include/asm-powerpc/unaligned.h')
-rw-r--r-- | include/asm-powerpc/unaligned.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-powerpc/unaligned.h b/include/asm-powerpc/unaligned.h new file mode 100644 index 000000000000..45520d9b85d1 --- /dev/null +++ b/include/asm-powerpc/unaligned.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #ifdef __KERNEL__ | ||
2 | #ifndef __PPC_UNALIGNED_H | ||
3 | #define __PPC_UNALIGNED_H | ||
4 | |||
5 | /* | ||
6 | * The PowerPC can do unaligned accesses itself in big endian mode. | ||
7 | * | ||
8 | * The strange macros are there to make sure these can't | ||
9 | * be misused in a way that makes them not work on other | ||
10 | * architectures where unaligned accesses aren't as simple. | ||
11 | */ | ||
12 | |||
13 | #define get_unaligned(ptr) (*(ptr)) | ||
14 | |||
15 | #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) )) | ||
16 | |||
17 | #endif | ||
18 | #endif /* __KERNEL__ */ | ||