OSDN Git Service

arm64: Bug fix in stack alignment exception
authorChiaHao <andy.jhshiu@gmail.com>
Thu, 12 Jun 2014 14:32:33 +0000 (15:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:14:01 +0000 (11:14 -0700)
commitc30371e8844c00d354e1a2f960b626c5fe5f68ac
tree8764f6d0b4251a60eaeb8682913f303421ee93b0
parent170924f3dbe9adcabd3ebc4c6f057afc65cfc9d5
arm64: Bug fix in stack alignment exception

commit 3906c2b53cd23c2ae03e6ce41432c8e7f0a3cbbb upstream.

The value of ESR has been stored into x1, and should be directly pass to
do_sp_pc_abort function, "MOV x1, x25" is an extra operation and do_sp_pc_abort
will get the wrong value of ESR.

Signed-off-by: ChiaHao <andy.jhshiu@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/entry.S