[PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

2012-12-06 Thread Haren Myneni
[PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller The first instruction in ACCOUNT_CPU_USER_ENTRY is 'beq' which checks for exceptions coming from kernel mode. PPR value will be saved immediately after ACCOUNT_CPU_USER_ENTRY and is also for user level

Re: [PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

2012-11-14 Thread Benjamin Herrenschmidt
On Thu, 2012-11-15 at 11:40 +1100, Benjamin Herrenschmidt wrote: On Tue, 2012-10-30 at 23:51 -0700, Haren Myneni wrote: --- a/arch/powerpc/kernel/exceptions-64e.S +++ b/arch/powerpc/kernel/exceptions-64e.S @@ -159,8 +159,9 @@ exc_##n##_common:

Re: [PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

2012-11-14 Thread Benjamin Herrenschmidt
On Tue, 2012-10-30 at 23:51 -0700, Haren Myneni wrote: --- a/arch/powerpc/kernel/exceptions-64e.S +++ b/arch/powerpc/kernel/exceptions-64e.S @@ -159,8 +159,9 @@ exc_##n##_common: \ std r9,GPR9(r1);/* save r9 in stackfram

[PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

2012-10-30 Thread Haren Myneni
[PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller The first instruction in ACCOUNT_CPU_USER_ENTRY is 'beq' which checks for exceptions coming from kernel mode. PPR value will be saved immediately after ACCOUNT_CPU_USER_ENTRY and is also for user level

Re: [PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

2012-09-10 Thread Haren Myneni
On 09/09/2012 05:05 PM, Benjamin Herrenschmidt wrote: > On Sun, 2012-09-09 at 04:36 -0700, Haren Myneni wrote: >> The first instruction in ACCOUNT_CPU_USER_ENTRY is 'beq' which checkes for >> exceptions coming from kernel mode. PPR value will be saved immediately after >> ACCOUNT_CPU_USER_ENTRY and

Re: [PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

2012-09-09 Thread Benjamin Herrenschmidt
On Sun, 2012-09-09 at 04:36 -0700, Haren Myneni wrote: > The first instruction in ACCOUNT_CPU_USER_ENTRY is 'beq' which checkes for > exceptions coming from kernel mode. PPR value will be saved immediately after > ACCOUNT_CPU_USER_ENTRY and is also for user level exceptions. So moved this > branch

[PATCH 1/6] powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

2012-09-09 Thread Haren Myneni
The first instruction in ACCOUNT_CPU_USER_ENTRY is 'beq' which checkes for exceptions coming from kernel mode. PPR value will be saved immediately after ACCOUNT_CPU_USER_ENTRY and is also for user level exceptions. So moved this branch instruction in the caller code. Signed-off-by: Haren Myneni