]> git.hungrycats.org Git - linux/commitdiff
arm64: Bug fix in stack alignment exception
authorChiaHao <andy.jhshiu@gmail.com>
Thu, 12 Jun 2014 14:32:33 +0000 (15:32 +0100)
committerJiri Slaby <jslaby@suse.cz>
Fri, 18 Jul 2014 13:51:02 +0000 (15:51 +0200)
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: Jiri Slaby <jslaby@suse.cz>
arch/arm64/kernel/entry.S

index 3881fd115ebb14b4b01e872575cbcfd769c76c07..028a1b91e2b3a417f9a30a5ce6c7dd5980f4adfc 100644 (file)
@@ -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: