RE: [patch V2 03/13] x86/irq/64: Adjust the per CPU irq stack pointer by 8

2021-02-10 Thread David Laight
From: Thomas Gleixner > Sent: 09 February 2021 23:41 > From: Thomas Gleixner > > The per CPU hardirq_stack_ptr contains the pointer to the irq stack in the > form that it is ready to be assigned to [ER]SP so that the first push ends > up on the top entry of the stack. ... > Do the -8 adjustment

[patch V2 03/13] x86/irq/64: Adjust the per CPU irq stack pointer by 8

2021-02-09 Thread Thomas Gleixner
From: Thomas Gleixner The per CPU hardirq_stack_ptr contains the pointer to the irq stack in the form that it is ready to be assigned to [ER]SP so that the first push ends up on the top entry of the stack. But the stack switching on 64 bit has the following rules: 1) Store the current