x86: clean up after: move entry_64.S register saving out of the macros, fix
authorIngo Molnar <mingo@elte.hu>
Fri, 21 Nov 2008 14:11:32 +0000 (15:11 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 21 Nov 2008 14:12:28 +0000 (15:12 +0100)
commite8a0e27662186f8856a0a6242e7a8386c9a64a53
tree96d84f4b24035294088f5a0045eee8927871edfc
parentdcd072e26055de600cecdc3f7a1e083ecd55c2e4
x86: clean up after: move entry_64.S register saving out of the macros, fix

Impact: build fix

The break builds with older binutils (2.16.1):

 arch/x86/kernel/entry_64.S: Assembler messages:
 arch/x86/kernel/entry_64.S:282: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:283: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:284: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:285: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:286: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:287: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:288: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:289: Error: too many positional arguments
 arch/x86/kernel/entry_64.S:290: Error: too many positional arguments

Took some time to figure out the detail that GAS chokes on: it's
negative offsets. Rearrange the calculations to make sure we never
go negative.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/entry_64.S