x86: introduce save_rest and restructure the PTREGSCALL macro in entry_64.S
authorAlexander van Heukelum <heukelum@mailshack.com>
Fri, 21 Nov 2008 15:41:55 +0000 (16:41 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 21 Nov 2008 18:02:54 +0000 (19:02 +0100)
commitc002a1e6b6b6f07ae04e68987054bf1f2150ae48
treeb8d0e2dbbba95876f26243ce4a425481ed9d4094
parent14ae22ba2b8bb3d53fb795f9b8074aa39ef7b6cd
x86: introduce save_rest and restructure the PTREGSCALL macro in entry_64.S

Impact: cleanup

The save_rest function completes a partial stack frame for use
by the PTREGSCALL macro. This also avoids the indirect call in
PTREGSCALLs.

This adds the macro movq_cfi_restore to hide the CFI_RESTORE
annotation when restoring a register from the stack frame.

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/entry_64.S