2 #ifndef __PPC_UNALIGNED_H
3 #define __PPC_UNALIGNED_H
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) ))
18 #endif /* __KERNEL__ */