mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH/next] x86: Provide 'unaligned' macros for x86 arch as well
@ 2011-11-16  9:04 Juergen Beisert
  2011-11-17 15:51 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Beisert @ 2011-11-16  9:04 UTC (permalink / raw)
  To: barebox

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

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index 17c5fd7..d520869 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -39,6 +39,8 @@ typedef unsigned short u16;
 
 typedef unsigned int u32;
 
+typedef unsigned long long u64;
+
 #endif /* __ASSEMBLY__ */
 
 #endif /* __ASM_X86_TYPES_H */
diff --git a/arch/x86/include/asm/unaligned.h b/arch/x86/include/asm/unaligned.h
new file mode 100644
index 0000000..34f2367
--- /dev/null
+++ b/arch/x86/include/asm/unaligned.h
@@ -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 */

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH/next] x86: Provide 'unaligned' macros for x86 arch as well
  2011-11-16  9:04 [PATCH/next] x86: Provide 'unaligned' macros for x86 arch as well Juergen Beisert
@ 2011-11-17 15:51 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2011-11-17 15:51 UTC (permalink / raw)
  To: Juergen Beisert; +Cc: barebox

On Wed, Nov 16, 2011 at 10:04:13AM +0100, Juergen Beisert wrote:
> 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 <lucas.demarchi@profusion.mobi>
Date:   Wed Nov 9 19:39:56 2011 -0200

    x86: fix build error because of missing header
    
    Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
    Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-17 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16  9:04 [PATCH/next] x86: Provide 'unaligned' macros for x86 arch as well Juergen Beisert
2011-11-17 15:51 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox