Module Name:    src
Committed By:   skrll
Date:           Wed Nov 21 21:04:15 UTC 2018

Modified Files:
        src/lib/libc/arch/aarch64/gen: swapcontext.S

Log Message:
Fix some register names in comments


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/aarch64/gen/swapcontext.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/aarch64/gen/swapcontext.S
diff -u src/lib/libc/arch/aarch64/gen/swapcontext.S:1.1 src/lib/libc/arch/aarch64/gen/swapcontext.S:1.2
--- src/lib/libc/arch/aarch64/gen/swapcontext.S:1.1	Sun Aug 10 05:47:36 2014
+++ src/lib/libc/arch/aarch64/gen/swapcontext.S	Wed Nov 21 21:04:15 2018
@@ -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 @@ ENTRY(swapcontext)
 	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 @@ ENTRY(swapcontext)
 	 */
 	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 */

Reply via email to