diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-09-11 21:50:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-09-14 21:21:27 +0300 |
| commit | 025778e89e7d0fe3cd1ad53537c9cc6f3cd819cc (patch) | |
| tree | a137a9f405578b41e092e13892516feccc4d71e6 /include/apos/debug.h | |
| parent | 9e2720ca086a74cfb6fa595da8c42e6cd24352ee (diff) | |
| download | kmi-025778e89e7d0fe3cd1ad53537c9cc6f3cd819cc.tar.gz kmi-025778e89e7d0fe3cd1ad53537c9cc6f3cd819cc.zip | |
riscv32 boots and advances as far as riscv64
Diffstat (limited to 'include/apos/debug.h')
| -rw-r--r-- | include/apos/debug.h | 11 |
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(...) |
