From: Joerg Roedel Date: Fri, 11 May 2007 05:22:14 +0000 (-0700) Subject: i386: work around miscompilation of alternatives code X-Git-Tag: v2.6.22-rc1~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6041b57c6c99dcb59524f1bb0db0628c2689a464;p=pandora-kernel.git i386: work around miscompilation of alternatives code A recent change makes my Dell 1501 hang on boot. It's an AMD MK-36. I use an x86_64 kernel. It is 100% reproducible. I debugged this problem a bit and my compiler[1]interprets the =A constraint as %rax instead of %edx:%eax on x86_64 which causes the problem. The appended patch provides a workaround for this and fixed the hang on my machine. [1] gcc version 4.1.3 20070429 (prerelease) (Debian 4.1.2-5) Signed-off-by: Joerg Roedel Cc: Andi Kleen Cc: Benny Halevy Cc: Pete Zaitcev Cc: "Joerg Roedel" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed