linux-um archives
 help / color / mirror / Atom feed
* [PATCH resend] um, hweight: Fix UML boot crash
@ 2010-06-09  8:04 Boaz Harrosh
  2010-06-09  8:09 ` [uml-devel] " Boaz Harrosh
  2010-06-09 16:39 ` Boaz Harrosh
  0 siblings, 2 replies; 10+ messages in thread
From: Boaz Harrosh @ 2010-06-09  8:04 UTC (permalink / raw)
  To: Borislav Petkov, H. Peter Anvin, Geert Uytterhoeven,
	Toralf Förster, uml-devel, linux-kernel

From: Borislav Petkov <bp@alien8.de>

Obviously UML cannot stomach callee reg-saving trickery
introduced with d61931d89be506372d01a90d1755f6d0a9fafe2d
(x86: Add optimized popcnt variants) and oopses during boot:
http://marc.info/?l=linux-kernel&m=127522065202435&w=2

Redirect arch_hweight.h include from the x86 portion to the generic
arch_hweight.h which is a fallback to the software hweight routines.

LKML-Reference: <201005271944.09541.toralf.foerster@gmx.de>
Signed-off-by: Borislav Petkov <bp@alien8.de>
---
 arch/um/include/asm/arch_hweight.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100644 arch/um/include/asm/arch_hweight.h

diff --git a/arch/um/include/asm/arch_hweight.h b/arch/um/include/asm/arch_hweight.h
new file mode 100644
index 0000000..c656cf4
--- /dev/null
+++ b/arch/um/include/asm/arch_hweight.h
@@ -0,0 +1,6 @@
+#ifndef _ASM_UM_HWEIGHT_H
+#define _ASM_UM_HWEIGHT_H
+
+#include <asm-generic/bitops/arch_hweight.h>
+
+#endif
-- 1.7.1 


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

end of thread, other threads:[~2010-06-14 18:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-09  8:04 [PATCH resend] um, hweight: Fix UML boot crash Boaz Harrosh
2010-06-09  8:09 ` [uml-devel] " Boaz Harrosh
2010-06-09  8:46   ` Geert Uytterhoeven
2010-06-09  9:08     ` Boaz Harrosh
2010-06-09  9:32     ` Américo Wang
2010-06-09 18:29     ` H. Peter Anvin
2010-06-14 16:08       ` Boaz Harrosh
2010-06-14 16:41         ` H. Peter Anvin
2010-06-14 18:18           ` Boaz Harrosh
2010-06-09 16:39 ` Boaz Harrosh

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