aboutsummaryrefslogtreecommitdiff
path: root/include/apos/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos/debug.h')
-rw-r--r--include/apos/debug.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/apos/debug.h b/include/apos/debug.h
index e7172f5..0d8ec26 100644
--- a/include/apos/debug.h
+++ b/include/apos/debug.h
@@ -345,11 +345,21 @@ void setup_dmap_dbg();
/**
* Setup debugging in virtual memory context.
+ * Both maps the debugging region and sets the UART subsystem to use
+ * the mapped region.
*
* @param vmem Virtual memory space to use.
*/
void setup_io_dbg(struct vmem *vmem);
+/**
+ * Map debugging into virtual memory context.
+ *
+ * @param vmem Virtual memory space to use.
+ * @return Virtual address of mapped region.
+ */
+vm_t map_io_dbg(struct vmem *vmem);
+
/** @name Internal. */
/** @{ */
@@ -407,6 +417,7 @@ void setup_io_dbg(struct vmem *vmem);
#define init_dbg(...)
#define setup_dmap_dbg(...)
#define setup_io_dbg(...)
+#define map_io_dbg(...)
#define bug(...)
#define warn(...)