Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-ppc / unaligned.h
blob45520d9b85d1184a84bd830af980e1b4eed5c02b
1 #ifdef __KERNEL__
2 #ifndef __PPC_UNALIGNED_H
3 #define __PPC_UNALIGNED_H
5 /*
6 * The PowerPC can do unaligned accesses itself in big endian mode.
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.
13 #define get_unaligned(ptr) (*(ptr))
15 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
17 #endif
18 #endif /* __KERNEL__ */