Re: [RFC PATCH v2 5/5] x86/entry/64: open-code switch_to_thread_stack

2018-02-19 Thread Ingo Molnar
* Josh Poimboeuf wrote: > > -.macro DO_SWITCH_TO_THREAD_STACK > > +/* 8(%rsp): ~(interrupt number) */ > > +ENTRY(interrupt_helper) > > "interrupt_helper" is a bit vague, how about "interrupt_entry"? That > better describes its purpose and also makes it more analagous to > paranoid_entry() and

Re: [RFC PATCH v2 5/5] x86/entry/64: open-code switch_to_thread_stack

2018-02-19 Thread Josh Poimboeuf
On Sun, Feb 18, 2018 at 01:31:16PM +0100, Dominik Brodowski wrote: > Open-code the two instances which used switch_to_thread_stack. This > allows us to remove the wrapper around DO_SWITCH_TO_THREAD_STACK. > > While at it, update the UNWIND hint to reflect where the IRET frame is. > > Signed-off-b

[RFC PATCH v2 5/5] x86/entry/64: open-code switch_to_thread_stack

2018-02-18 Thread Dominik Brodowski
Open-code the two instances which used switch_to_thread_stack. This allows us to remove the wrapper around DO_SWITCH_TO_THREAD_STACK. While at it, update the UNWIND hint to reflect where the IRET frame is. Signed-off-by: Dominik Brodowski --- arch/x86/entry/entry_64.S| 59 ++