浏览代码

arm64: hyp-stub: Don't save lr in the EL1 code

The EL2 code is not corrupting lr anymore, so don't bother preserving
it in the EL1 trampoline code.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Marc Zyngier 8 年之前
父节点
当前提交
9bae3ae513
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      arch/arm64/kernel/hyp-stub.S

+ 0 - 4
arch/arm64/kernel/hyp-stub.S

@@ -116,18 +116,14 @@ ENDPROC(\label)
  */
  */
 
 
 ENTRY(__hyp_get_vectors)
 ENTRY(__hyp_get_vectors)
-	str	lr, [sp, #-16]!
 	mov	x0, #HVC_GET_VECTORS
 	mov	x0, #HVC_GET_VECTORS
 	hvc	#0
 	hvc	#0
-	ldr	lr, [sp], #16
 	ret
 	ret
 ENDPROC(__hyp_get_vectors)
 ENDPROC(__hyp_get_vectors)
 
 
 ENTRY(__hyp_set_vectors)
 ENTRY(__hyp_set_vectors)
-	str	lr, [sp, #-16]!
 	mov	x1, x0
 	mov	x1, x0
 	mov	x0, #HVC_SET_VECTORS
 	mov	x0, #HVC_SET_VECTORS
 	hvc	#0
 	hvc	#0
-	ldr	lr, [sp], #16
 	ret
 	ret
 ENDPROC(__hyp_set_vectors)
 ENDPROC(__hyp_set_vectors)