From: Luca Barbieri Date: Fri, 6 Aug 2010 02:04:38 +0000 (+0200) Subject: x86, asm: Refactor atomic64_386_32.S to support old binutils and be cleaner X-Git-Tag: v2.6.36-rc1~45^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30246557a06bb20618bed906a06d1e1e0faa8bb4;p=pandora-kernel.git x86, asm: Refactor atomic64_386_32.S to support old binutils and be cleaner The old code didn't work on binutils 2.12 because setting a symbol to a register apparently requires a fairly recent version. This commit refactors the code to use the C preprocessor instead, and in the process makes the whole code a bit easier to understand. The object code produced is unchanged as expected. This fixes kernel bugzilla 16506. Reported-by: Dieter Stussy Signed-off-by: Luca Barbieri Signed-off-by: H. Peter Anvin Cc: 2.6.35 LKML-Reference: --- Reading git-diff-tree failed