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 make a frame pointer to show a back...



details:   https://anonhg.NetBSD.org/src/rev/476a709db44f
branches:  trunk
changeset: 366577:476a709db44f
user:      ryo <ryo%NetBSD.org@localhost>
date:      Tue May 31 07:40:25 2022 +0000

description:
make a frame pointer to show a backtrace correctly.

diffstat:

 sys/arch/aarch64/aarch64/cpuswitch.S |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 3420816edc23 -r 476a709db44f sys/arch/aarch64/aarch64/cpuswitch.S
--- a/sys/arch/aarch64/aarch64/cpuswitch.S      Tue May 31 07:12:15 2022 +0000
+++ b/sys/arch/aarch64/aarch64/cpuswitch.S      Tue May 31 07:40:25 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuswitch.S,v 1.34 2022/05/06 06:09:50 ryo Exp $ */
+/* $NetBSD: cpuswitch.S,v 1.35 2022/05/31 07:40:25 ryo 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.34 2022/05/06 06:09:50 ryo Exp $")
+RCSID("$NetBSD: cpuswitch.S,v 1.35 2022/05/31 07:40:25 ryo Exp $")
 
        ARMV8_DEFINE_OPTIONS
 
@@ -315,7 +315,10 @@
 
 #ifdef DDB
 ENTRY_NP(cpu_Debugger)
+       stp     fp, lr, [sp, #-16]!
+       mov     fp, sp
        brk     #0xffff
+       ldp     fp, lr, [sp], #16
        ret
 END(cpu_Debugger)
 #endif /* DDB */



Home | Main Index | Thread Index | Old Index