summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2020-09-26 06:09:33 +0000
committerskrll <skrll@NetBSD.org>2020-09-26 06:09:33 +0000
commit25d7204e7fd97e827879c1aa510b4e575cf1ad02 (patch)
treee653432cf11df9d37fed839d5a9fd6def7e328fe /sys
parent49d8b98dd69c834e210166980c0286c47f5f420e (diff)
Use 'lr' instead of 'x30' in an instruction for clarity
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/aarch64/aarch64/cpuswitch.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/aarch64/aarch64/cpuswitch.S b/sys/arch/aarch64/aarch64/cpuswitch.S
index 3108cf2d894..fa4c80c738e 100644
--- a/sys/arch/aarch64/aarch64/cpuswitch.S
+++ b/sys/arch/aarch64/aarch64/cpuswitch.S
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuswitch.S,v 1.26 2020/09/26 06:08:41 skrll Exp $ */
+/* $NetBSD: cpuswitch.S,v 1.27 2020/09/26 06:09:33 skrll Exp $ */
/*-
* Copyright (c) 2014, 2020 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include "opt_ddb.h"
#include "opt_kasan.h"
-RCSID("$NetBSD: cpuswitch.S,v 1.26 2020/09/26 06:08:41 skrll Exp $")
+RCSID("$NetBSD: cpuswitch.S,v 1.27 2020/09/26 06:09:33 skrll Exp $")
ARMV8_DEFINE_OPTIONS
@@ -298,7 +298,7 @@ ENTRY_NP(lwp_trampoline)
/*
* When the x27 function returns, it will jump to el0_trap_exit.
*/
- adr x30, el0_trap_exit /* tail call via lr */
+ adr lr, el0_trap_exit /* tail call via lr */
mov x0, x28 /* mov arg into place */
mov x16, x27 /* use x16 as jump register, for BTI */
br x16 /* call function with arg */