]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd23e38a4a7fb00ee25ec89afc366aef639fb8c2f
treeb3d38bd338c9baec4700c5a48c737157edfcb5f5
parent7cd9b91fd947cab6313f9516da9d78f1b3d62609
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