20 lines
491 B
C
20 lines
491 B
C
|
#ifndef _ASM_SANDBOX_UNALIGNED_H
|
||
|
#define _ASM_SANDBOX_UNALIGNED_H
|
||
|
|
||
|
/*
|
||
|
* The architecture sandbox is compiled on can do unaligned accesses itself.
|
||
|
*/
|
||
|
|
||
|
#include <linux/unaligned/access_ok.h>
|
||
|
#include <linux/unaligned/generic.h>
|
||
|
|
||
|
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||
|
#define get_unaligned __get_unaligned_le
|
||
|
#define put_unaligned __put_unaligned_le
|
||
|
#else
|
||
|
#define get_unaligned __get_unaligned_be
|
||
|
#define put_unaligned __put_unaligned_be
|
||
|
#endif
|
||
|
|
||
|
#endif /* _ASM_SANDBOX_UNALIGNED_H */
|