[U-Boot] [RFC][PATCH 01/21] [x86] Add unaligned.h

Graeme Russ graeme.russ at gmail.com
Thu Mar 25 12:22:43 CET 2010


---
 include/asm-i386/unaligned.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-i386/unaligned.h

diff --git a/include/asm-i386/unaligned.h b/include/asm-i386/unaligned.h
new file mode 100644
index 0000000..1e16b7d
--- /dev/null
+++ b/include/asm-i386/unaligned.h
@@ -0,0 +1,14 @@
+#ifndef _ASM_ARM_UNALIGNED_H
+#define _ASM_ARM_UNALIGNED_H
+
+/*
+ * The x86 can do unaligned accesses itself.
+ */
+
+#include <linux/unaligned/access_ok.h>
+#include <linux/unaligned/generic.h>
+
+#define get_unaligned __get_unaligned_le
+#define put_unaligned __put_unaligned_le
+
+#endif /* _ASM_ARM_UNALIGNED_H */
-- 
1.7.0.2.182.ge007



More information about the U-Boot mailing list