x86/entry/64: Merge SAVE_C_REGS and SAVE_EXTRA_REGS, remove unused extensions
authorDominik Brodowski <[email protected]>
Sun, 11 Feb 2018 10:49:42 +0000 (11:49 +0100)
committerIngo Molnar <[email protected]>
Tue, 13 Feb 2018 08:04:52 +0000 (09:04 +0100)
commit2e3f0098bc45f710a2f4cbcc94b80a1fae7a99a1
tree869d6d7b5b7a6a415980d5910c098e4d1bee1162
parent21e433bdb95bdf3aa48226fd3d33af608437f293
x86/entry/64: Merge SAVE_C_REGS and SAVE_EXTRA_REGS, remove unused extensions

All current code paths call SAVE_C_REGS and then immediately
SAVE_EXTRA_REGS. Therefore, merge these two macros and order the MOV
sequeneces properly.

While at it, remove the macros to save all except specific registers,
as these macros have been unused for a long time.

Suggested-by: Linus Torvalds <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/entry/calling.h
arch/x86/entry/entry_64.S