Module Name:    src
Committed By:   skrll
Date:           Sat Oct 24 07:02:20 UTC 2020

Modified Files:
        src/lib/libc/arch/aarch64/sys: __sigtramp2.S

Log Message:
Update the unwinder comment to better reflect ARM64


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/aarch64/sys/__sigtramp2.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/sys/__sigtramp2.S
diff -u src/lib/libc/arch/aarch64/sys/__sigtramp2.S:1.5 src/lib/libc/arch/aarch64/sys/__sigtramp2.S:1.6
--- src/lib/libc/arch/aarch64/sys/__sigtramp2.S:1.5	Sat Oct 24 07:00:26 2020
+++ src/lib/libc/arch/aarch64/sys/__sigtramp2.S	Sat Oct 24 07:02:20 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: __sigtramp2.S,v 1.5 2020/10/24 07:00:26 skrll Exp $ */
+/* $NetBSD: __sigtramp2.S,v 1.6 2020/10/24 07:02:20 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -41,12 +41,13 @@
  *		ucontext structure
  *	sp->	siginfo structure
  * and x28 points to the ucontext
- *
- * The unwind entry includes the one byte prior to the trampoline
+ */
+
+/*
+ * The unwind entry includes the one instruction prior to the trampoline
  * because the unwinder will look up (return PC - 1) while unwinding.
- * Normally (return PC - 1) computes an address inside the call
- * instruction that created the child frame, but here there is no call
- * instruction so we have to manually add padding.
+ * Normally this would be the jump / branch, but since there isn't one in
+ * this case, we place an explicit nop there instead.
  */
 	.cfi_startproc simple
 	.cfi_signal_frame

Reply via email to