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

Submitted by Benjamin Herrenschmidt on Nov. 15, 2012, 1:03 a.m.

Details

Message ID 1352941406.23412.40.camel@pasglop
State Not Applicable
Headers show

Commit Message

Benjamin Herrenschmidt Nov. 15, 2012, 1:03 a.m.
On Thu, 2012-11-15 at 11:40 +1100, Benjamin Herrenschmidt wrote:
On Tue, 2012-10-30 at 23:51 -0700, Haren Myneni wrote:
Cheers,
Ben.

Patch hide | download patch | download mbox

--- 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 stackframe */         \
        std     r10,_NIP(r1);           /* save SRR0 to stackframe */       \
        std     r11,_MSR(r1);           /* save SRR1 to stackframe */       \
+       beq     1f                      /* if from kernel mode */

Missing semicolon 

Ok, that's not enough. Please test & fix & resend.