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/sys Restore SP from mcontext



details:   https://anonhg.NetBSD.org/src/rev/86fde530575f
branches:  trunk
changeset: 941157:86fde530575f
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Oct 19 22:33:53 2020 +0000

description:
Restore SP from mcontext

Improves unwinding of multiple frames without frame pointer.

diffstat:

 lib/libc/arch/aarch64/sys/__sigtramp2.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d0a23d63b222 -r 86fde530575f lib/libc/arch/aarch64/sys/__sigtramp2.S
--- a/lib/libc/arch/aarch64/sys/__sigtramp2.S   Mon Oct 19 21:57:37 2020 +0000
+++ b/lib/libc/arch/aarch64/sys/__sigtramp2.S   Mon Oct 19 22:33:53 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __sigtramp2.S,v 1.3 2020/10/17 15:44:59 skrll Exp $ */
+/* $NetBSD: __sigtramp2.S,v 1.4 2020/10/19 22:33:53 kamil Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
        .cfi_offset x28, _UC_REGS_X28
        .cfi_offset x29, _UC_REGS_X29
        .cfi_offset lr, _UC_REGS_LR
-       /* The unwinder will use the CFA to restore X31 (SP). */
+       .cfi_offset sp, _UC_REGS_SP
        nop
 ENTRY_NP(__sigtramp_siginfo_2)
        mov     x0, x28                         /* set the arg         */



Home | Main Index | Thread Index | Old Index