summaryrefslogtreecommitdiffstats
path: root/sys/arm64
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-09-13 16:22:50 +0000
committerandrew <andrew@FreeBSD.org>2016-09-13 16:22:50 +0000
commit040460084cbb93610ffc8e24a0206f9b41189e73 (patch)
tree2c17915b356a94247b28aa1e773455c43e91818f /sys/arm64
parent9ebff16104b6a438f21c5cae6ead584e2867b490 (diff)
downloadFreeBSD-src-040460084cbb93610ffc8e24a0206f9b41189e73.zip
FreeBSD-src-040460084cbb93610ffc8e24a0206f9b41189e73.tar.gz
MFC 305771, 305772:
Fix the arm64 kernel build when DDB is disabled, debug_monitor.c depends on DDB, and is unused when it's disabled.
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/db_trace.c2
-rw-r--r--sys/arm64/arm64/debug_monitor.c2
-rw-r--r--sys/arm64/include/debug_monitor.h2
3 files changed, 5 insertions, 1 deletions
diff --git a/sys/arm64/arm64/db_trace.c b/sys/arm64/arm64/db_trace.c
index c606377..ee20e9f 100644
--- a/sys/arm64/arm64/db_trace.c
+++ b/sys/arm64/arm64/db_trace.c
@@ -27,6 +27,8 @@
* SUCH DAMAGE.
*/
+#include "opt_ddb.h"
+
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
diff --git a/sys/arm64/arm64/debug_monitor.c b/sys/arm64/arm64/debug_monitor.c
index 46167df..4d458fc 100644
--- a/sys/arm64/arm64/debug_monitor.c
+++ b/sys/arm64/arm64/debug_monitor.c
@@ -27,6 +27,8 @@
* SUCH DAMAGE.
*/
+#include "opt_ddb.h"
+
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
diff --git a/sys/arm64/include/debug_monitor.h b/sys/arm64/include/debug_monitor.h
index 59a0cb8..efe90da 100644
--- a/sys/arm64/include/debug_monitor.h
+++ b/sys/arm64/include/debug_monitor.h
@@ -32,7 +32,7 @@
#ifndef _MACHINE_DEBUG_MONITOR_H_
#define _MACHINE_DEBUG_MONITOR_H_
-#ifdef KDB
+#ifdef DDB
#include <machine/db_machdep.h>
OpenPOWER on IntegriCloud