From d7a3eada0a0ab11cfd2c2f61a05dbf8a285bc2b8 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sun, 3 Nov 2019 22:17:49 +0000 Subject: [PATCH] Move the struct debug_monitor_state out of _KERNEL. Some userland libraries incude machine/pcb.h and this needs the full definition of struct debug_monitor_state. To allow this to work move stuct debug_monitor_state out of the _KERNEL guard. Sponsored by: DARPA, AFRL --- sys/arm64/include/debug_monitor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm64/include/debug_monitor.h b/sys/arm64/include/debug_monitor.h index 487b37b5e47..4ca1a4c9248 100644 --- a/sys/arm64/include/debug_monitor.h +++ b/sys/arm64/include/debug_monitor.h @@ -32,8 +32,6 @@ #ifndef _MACHINE_DEBUG_MONITOR_H_ #define _MACHINE_DEBUG_MONITOR_H_ -#ifdef _KERNEL - #define DBG_BRP_MAX 16 #define DBG_WRP_MAX 16 @@ -48,6 +46,8 @@ struct debug_monitor_state { uint64_t dbg_wvr[DBG_WRP_MAX]; }; +#ifdef _KERNEL + enum dbg_access_t { HW_BREAKPOINT_X = 0, HW_BREAKPOINT_R = 1,