unaligned.h 498 B

12345678910111213141516171819
  1. #ifndef _ASM_POWERPC_UNALIGNED_H
  2. #define _ASM_POWERPC_UNALIGNED_H
  3. #ifdef __KERNEL__
  4. /*
  5. * The PowerPC can do unaligned accesses itself in big endian mode.
  6. *
  7. * The strange macros are there to make sure these can't
  8. * be misused in a way that makes them not work on other
  9. * architectures where unaligned accesses aren't as simple.
  10. */
  11. #define get_unaligned(ptr) (*(ptr))
  12. #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
  13. #endif /* __KERNEL__ */
  14. #endif /* _ASM_POWERPC_UNALIGNED_H */