Browse Source

arm64: Bug fix in stack alignment exception

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>
ChiaHao 11 years ago
parent
commit
3906c2b53c
1 changed files with 0 additions and 1 deletions
  1. 0 1
      arch/arm64/kernel/entry.S

+ 0 - 1
arch/arm64/kernel/entry.S

@@ -279,7 +279,6 @@ el1_sp_pc:
 	 */
 	 */
 	mrs	x0, far_el1
 	mrs	x0, far_el1
 	enable_dbg
 	enable_dbg
-	mov	x1, x25
 	mov	x2, sp
 	mov	x2, sp
 	b	do_sp_pc_abort
 	b	do_sp_pc_abort
 el1_undef:
 el1_undef: