unaligned.h 491 B

123456789101112131415161718192021222324
  1. #ifndef __M68K_UNALIGNED_H
  2. #define __M68K_UNALIGNED_H
  3. #include <linux/config.h>
  4. #ifdef CONFIG_COLDFIRE
  5. #include <asm-generic/unaligned.h>
  6. #else
  7. /*
  8. * The m68k can do unaligned accesses itself.
  9. *
  10. * The strange macros are there to make sure these can't
  11. * be misused in a way that makes them not work on other
  12. * architectures where unaligned accesses aren't as simple.
  13. */
  14. #define get_unaligned(ptr) (*(ptr))
  15. #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
  16. #endif
  17. #endif