unaligned.h 465 B

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