Module Name:    src
Committed By:   ryo
Date:           Tue May 31 07:40:25 UTC 2022

Modified Files:
        src/sys/arch/aarch64/aarch64: cpuswitch.S

Log Message:
make a frame pointer to show a backtrace correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/aarch64/aarch64/cpuswitch.S

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

Modified files:

Index: src/sys/arch/aarch64/aarch64/cpuswitch.S
diff -u src/sys/arch/aarch64/aarch64/cpuswitch.S:1.34 src/sys/arch/aarch64/aarch64/cpuswitch.S:1.35
--- src/sys/arch/aarch64/aarch64/cpuswitch.S:1.34	Fri May  6 06:09:50 2022
+++ src/sys/arch/aarch64/aarch64/cpuswitch.S	Tue May 31 07:40:25 2022
@@ -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 @@ END(lwp_trampoline)
 
 #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 */

Reply via email to