Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-23 Thread Larry Bassel
On 23 May 14 15:44, Catalin Marinas wrote: > On Thu, May 22, 2014 at 11:35:20PM +0100, Larry Bassel wrote: > > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > > > > To implement the context tracker properly on arm64, > > > > a function call needs to be made after debugging and > > > > interrupts ar

Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-23 Thread Catalin Marinas
On Thu, May 22, 2014 at 11:35:20PM +0100, Larry Bassel wrote: > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > > > To implement the context tracker properly on arm64, > > > a function call needs to be made after debugging and > > > interrupts are turned on, but before the lr is changed > > > to po

Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-22 Thread Larry Bassel
On 22 May 14 16:23, Christopher Covington wrote: > Hi Larry, > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > > To implement the context tracker properly on arm64, > > a function call needs to be made after debugging and > > interrupts are turned on, but before the lr is changed > > to point to r

Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-22 Thread Christopher Covington
Hi Larry, On 05/22/2014 03:27 PM, Larry Bassel wrote: > To implement the context tracker properly on arm64, > a function call needs to be made after debugging and > interrupts are turned on, but before the lr is changed > to point to ret_to_user(). If the function call > is made after the lr is ch

[PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-22 Thread Larry Bassel
To implement the context tracker properly on arm64, a function call needs to be made after debugging and interrupts are turned on, but before the lr is changed to point to ret_to_user(). If the function call is made after the lr is changed the function will not return to the correct place. For sim