powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller
authorHaren Myneni <haren@linux.vnet.ibm.com>
Thu, 6 Dec 2012 21:46:37 +0000 (21:46 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 10 Jan 2013 06:00:59 +0000 (17:00 +1100)
commit5d75b26443aff37a7bd356f9dbd6d6e11ec122aa
treeb3d38bd338c9baec4700c5a48c737157edfcb5f5
parent15fab56ecae2cba7e9f6663979bb160c11a9c506
powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller

[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 exceptions. So moved this
branch instruction in the caller code.

Signed-off-by: Haren Myneni <haren@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/exceptions-64e.S