diff options
author | ChiaHao <andy.jhshiu@gmail.com> | 2014-06-12 15:32:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 11:21:29 -0700 |
commit | d3ec86e1b48bdbdabb6398e7fc39ab51a87c2f49 (patch) | |
tree | 218e77ae868987dfdb638afa277742134fbc2052 /arch | |
parent | 62d579a89acd3c7c8bd02d0538e30e0dba64b6ea (diff) | |
download | lwn-d3ec86e1b48bdbdabb6398e7fc39ab51a87c2f49.tar.gz lwn-d3ec86e1b48bdbdabb6398e7fc39ab51a87c2f49.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/kernel/entry.S | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S index 39ac630d83de..a8e4bdbbb4b8 100644 --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -275,7 +275,6 @@ el1_sp_pc: * Stack or PC alignment exception handling */ mrs x0, far_el1 - mov x1, x25 mov x2, sp b do_sp_pc_abort el1_undef: |