Module Name:    src
Committed By:   rin
Date:           Mon Nov  8 23:35:43 UTC 2021

Modified Files:
        src/sys/arch/acorn32/conf: Makefile.acorn32
        src/sys/arch/hpcarm/conf: Makefile.hpcarm

Log Message:
For DDB, generate APCS stack frame so that db_stack_trace_print() works.

XXX
Copy-paste from arm/conf/Makefile.arm.
Convert to ${MACHINE}/conf/Makefile.${MACHINE}.inc.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/acorn32/conf/Makefile.acorn32
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/hpcarm/conf/Makefile.hpcarm

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/acorn32/conf/Makefile.acorn32
diff -u src/sys/arch/acorn32/conf/Makefile.acorn32:1.24 src/sys/arch/acorn32/conf/Makefile.acorn32:1.25
--- src/sys/arch/acorn32/conf/Makefile.acorn32:1.24	Sat Sep 22 12:24:01 2018
+++ src/sys/arch/acorn32/conf/Makefile.acorn32	Mon Nov  8 23:35:43 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.acorn32,v 1.24 2018/09/22 12:24:01 rin Exp $
+#	$NetBSD: Makefile.acorn32,v 1.25 2021/11/08 23:35:43 rin Exp $
 
 # Makefile for NetBSD
 #
@@ -36,6 +36,11 @@ CPPFLAGS+=	-Darm32
 CWARNFLAGS+=	-Wcomment
 AFLAGS+=	-x assembler-with-cpp
 
+OPT_DDB=	%DDB%
+.if !empty(OPT_DDB) && ${HAVE_GCC:U0} > 0
+CFLAGS+=	-mapcs-frame
+.endif
+
 ##
 ## (3) libkern and compat
 ##

Index: src/sys/arch/hpcarm/conf/Makefile.hpcarm
diff -u src/sys/arch/hpcarm/conf/Makefile.hpcarm:1.19 src/sys/arch/hpcarm/conf/Makefile.hpcarm:1.20
--- src/sys/arch/hpcarm/conf/Makefile.hpcarm:1.19	Sat Sep 22 12:24:02 2018
+++ src/sys/arch/hpcarm/conf/Makefile.hpcarm	Mon Nov  8 23:35:43 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.hpcarm,v 1.19 2018/09/22 12:24:02 rin Exp $
+#	$NetBSD: Makefile.hpcarm,v 1.20 2021/11/08 23:35:43 rin Exp $
 
 # Makefile for NetBSD
 #
@@ -36,6 +36,11 @@ CPPFLAGS+=	-Dhpcarm -Darm32
 CWARNFLAGS+=	-Wcomment
 AFLAGS+=	-x assembler-with-cpp
 
+OPT_DDB=	%DDB%
+.if !empty(OPT_DDB) && ${HAVE_GCC:U0} > 0
+CFLAGS+=	-mapcs-frame
+.endif
+
 ##
 ## (3) libkern and compat
 ##

Reply via email to