Re: [PATCHv2 1/4] x86_64: cleanup THREAD_INFO(reg,offset) macro

2015-01-21 Thread Alexander van Heukelum
On Wed, Jan 21, 2015, at 19:04, Borislav Petkov wrote: > On Wed, Jan 21, 2015 at 05:20:09PM +0100, Alexander van Heukelum wrote: > > On Wed, Jan 21, 2015, at 14:40, Denys Vlasenko wrote: > > > On Sun, Jan 18, 2015 at 12:45 PM, Alexander van Heukelum > > > wrote: > > > > The macro THREAD_INFO(reg,o

Re: [PATCHv2 1/4] x86_64: cleanup THREAD_INFO(reg,offset) macro

2015-01-21 Thread Borislav Petkov
On Wed, Jan 21, 2015 at 05:20:09PM +0100, Alexander van Heukelum wrote: > On Wed, Jan 21, 2015, at 14:40, Denys Vlasenko wrote: > > On Sun, Jan 18, 2015 at 12:45 PM, Alexander van Heukelum > > wrote: > > > The macro THREAD_INFO(reg,offset) is used in assembly to compute the > > > offset between th

Re: [PATCHv2 1/4] x86_64: cleanup THREAD_INFO(reg,offset) macro

2015-01-21 Thread Alexander van Heukelum
On Wed, Jan 21, 2015, at 14:40, Denys Vlasenko wrote: > On Sun, Jan 18, 2015 at 12:45 PM, Alexander van Heukelum > wrote: > > The macro THREAD_INFO(reg,offset) is used in assembly to compute the > > offset between the user ptregs and the thread_info struct. Change > > the macro and all its uses so

Re: [PATCHv2 1/4] x86_64: cleanup THREAD_INFO(reg,offset) macro

2015-01-21 Thread Denys Vlasenko
On Sun, Jan 18, 2015 at 12:45 PM, Alexander van Heukelum wrote: > The macro THREAD_INFO(reg,offset) is used in assembly to compute the > offset between the user ptregs and the thread_info struct. Change > the macro and all its uses so that offset is given as the current > top of stack in the pt_re

[PATCHv2 1/4] x86_64: cleanup THREAD_INFO(reg,offset) macro

2015-01-18 Thread Alexander van Heukelum
The macro THREAD_INFO(reg,offset) is used in assembly to compute the offset between the user ptregs and the thread_info struct. Change the macro and all its uses so that offset is given as the current top of stack in the pt_regs frame. The generated code is identical. Signed-off-by: Alexander van