Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 Use 'lr' instead of 'x30' in an ins...



details:   https://anonhg.NetBSD.org/src/rev/e0bd807d2be2
branches:  trunk
changeset: 939356:e0bd807d2be2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Sep 26 06:09:33 2020 +0000

description:
Use 'lr' instead of 'x30' in an instruction for clarity

diffstat:

 sys/arch/aarch64/aarch64/cpuswitch.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d8a42bc5a5f3 -r e0bd807d2be2 sys/arch/aarch64/aarch64/cpuswitch.S
--- a/sys/arch/aarch64/aarch64/cpuswitch.S      Sat Sep 26 06:08:41 2020 +0000
+++ b/sys/arch/aarch64/aarch64/cpuswitch.S      Sat Sep 26 06:09:33 2020 +0000
@@ -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 @@
        /*
         * 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 */



Home | Main Index | Thread Index | Old Index