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 fix build without options DDB



details:   https://anonhg.NetBSD.org/src/rev/d8bcb85a33dc
branches:  trunk
changeset: 366520:d8bcb85a33dc
user:      ryo <ryo%NetBSD.org@localhost>
date:      Sun May 29 16:14:41 2022 +0000

description:
fix build without options DDB

diffstat:

 sys/arch/aarch64/aarch64/cpu.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r a6eed8cb1841 -r d8bcb85a33dc sys/arch/aarch64/aarch64/cpu.c
--- a/sys/arch/aarch64/aarch64/cpu.c    Sun May 29 16:13:41 2022 +0000
+++ b/sys/arch/aarch64/aarch64/cpu.c    Sun May 29 16:14:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.69 2022/03/03 06:26:05 riastradh Exp $ */
+/* $NetBSD: cpu.c,v 1.70 2022/05/29 16:14:41 ryo Exp $ */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.69 2022/03/03 06:26:05 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.70 2022/05/29 16:14:41 ryo Exp $");
 
 #include "locators.h"
 #include "opt_arm_debug.h"
@@ -170,7 +170,9 @@
            return;
        }
 
+#ifdef DDB
        db_machdep_init(ci);
+#endif
 
        cpu_init_counter(ci);
 



Home | Main Index | Thread Index | Old Index