Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/aarch64/gen Fix some register names in comments



details:   https://anonhg.NetBSD.org/src/rev/07c558e3046e
branches:  trunk
changeset: 837168:07c558e3046e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Nov 21 21:04:15 2018 +0000

description:
Fix some register names in comments

diffstat:

 lib/libc/arch/aarch64/gen/swapcontext.S |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r b859d984de3f -r 07c558e3046e lib/libc/arch/aarch64/gen/swapcontext.S
--- a/lib/libc/arch/aarch64/gen/swapcontext.S   Wed Nov 21 21:01:41 2018 +0000
+++ b/lib/libc/arch/aarch64/gen/swapcontext.S   Wed Nov 21 21:04:15 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: swapcontext.S,v 1.1 2014/08/10 05:47:36 matt Exp $ */
+/* $NetBSD: swapcontext.S,v 1.2 2018/11/21 21:04:15 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -33,14 +33,14 @@
 #include "assym.h"
 
 #if defined(LIBC_SCCS) && !defined(lint)
-        RCSID("$NetBSD: swapcontext.S,v 1.1 2014/08/10 05:47:36 matt Exp $")
+        RCSID("$NetBSD: swapcontext.S,v 1.2 2018/11/21 21:04:15 skrll Exp $")
 #endif /* LIBC_SCCS && !lint */
 
 /* LINTSTUB: int swapcontext(ucontext_t * restrict, ucontext_t * restrict); */
 
 ENTRY(swapcontext)
        sub     sp, sp, #32             /* allocate stack frame */
-       stp     x29, x30, [sp, #16]     /* save FP & RA */
+       stp     x29, x30, [sp, #16]     /* save FP & LR */
        add     x29, sp, #16            /* new FP */
        stp     x0, x1, [sp, #0]        /* save oucp & ucp */
 
@@ -48,7 +48,7 @@
        mov     x3, x0                  /* save return value */
 
        ldp     x2, x0, [sp, #0]        /* restore oucp & ucp */
-       ldp     x29, x30, [sp, #16]     /* restore FP & RA */
+       ldp     x29, x30, [sp, #16]     /* restore FP & LR */
        add     sp, sp, #32             /* free stack frame */
 
        /*
@@ -56,7 +56,7 @@
         */
        mov     x4, sp                  /* Get SP */
        str     x4, [x2, #_UC_REGS_SP]  /* Adjust saved SP. */
-       str     x30, [x2, #_UC_REGS_PC] /* Adjust saved LR. */
+       str     x30, [x2, #_UC_REGS_PC] /* Adjust saved PC. */
 
        cbz     x3, _C_LABEL(setcontext)/* setcontext if getcontext succeeded */
        mov     x0, x3                  /* restore getcontext return value */



Home | Main Index | Thread Index | Old Index