aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-09-11 21:50:55 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-09-14 21:21:27 +0300
commit025778e89e7d0fe3cd1ad53537c9cc6f3cd819cc (patch)
treea137a9f405578b41e092e13892516feccc4d71e6 /include
parent9e2720ca086a74cfb6fa595da8c42e6cd24352ee (diff)
downloadkmi-025778e89e7d0fe3cd1ad53537c9cc6f3cd819cc.tar.gz
kmi-025778e89e7d0fe3cd1ad53537c9cc6f3cd819cc.zip
riscv32 boots and advances as far as riscv64
Diffstat (limited to 'include')
-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(...)