From 874317319b189954033901b7b8ef4a5ee82cc405 Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Wed, 9 Jun 2010 11:04:16 +0300 Subject: [PATCH] um, hweight: Fix UML boot crash due to x86 optimized hweight Apparently UML cannot stomach callee reg-saving trickery introduced with e461ce4c9aae80a0f8cb974f13a6a4e77c6903a2 (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 LKML-Reference: <4C0F4B00.4090307@panasas.com> Signed-off-by: H. Peter Anvin --- arch/um/include/asm/arch_hweight.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 0000000000000..c656cf443f4a2 --- /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 + +#endif -- 2.39.5