Skip to contentSkip to conversation

x86: Provide 'unaligned' macros for x86 arch as well

PATCH/next Juergen Beisert 2 participants 2 messages Nov 16, 2011 – Nov 17, 2011 x86

lore
Share & tools
lore
#0 lore raw

These macros are used in the generic partition detection code. So, x86 would fails without it.

arch/x86/include/asm/types.h +2 -0
index 17c5fd7..d520869 100644
@@ -39,6 +39,8 @@ typedef unsigned short u16;
 
 typedef unsigned int u32;
 
+typedef unsigned long long u64;
+
 #endif /* __ASSEMBLY__ */
 
 #endif /* __ASM_X86_TYPES_H */
arch/x86/include/asm/unaligned.h new file +11 -0
new file mode 100644
index 0000000..34f2367
@@ -0,0 +1,11 @@
+#ifndef _ASM_X86_UNALIGNED_H
+#define _ASM_X86_UNALIGNED_H
+
+#include <linux/unaligned/le_byteshift.h>
+#include <linux/unaligned/be_byteshift.h>
+#include <linux/unaligned/generic.h>
+
+#define get_unaligned	__get_unaligned_le
+#define put_unaligned	__put_unaligned_le
+
+#endif /* _ASM_X86_UNALIGNED_H */
Signature · 7 lines
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 2 lines · Juergen Beisert

These macros are used in the generic partition detection code. So, x86 would fails without it.

This is already fixed in master since:

commit 8d6d5d43dde84b0352195a3ce6d0b9101e651073

Author: Lucas De Marchi <[email protected]>
Date:   Wed Nov 9 19:39:56 2011 -0200

x86: fix build error because of missing header

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox