From 025778e89e7d0fe3cd1ad53537c9cc6f3cd819cc Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 11 Sep 2022 21:50:55 +0300 Subject: riscv32 boots and advances as far as riscv64 --- include/apos/debug.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/apos') 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(...) -- cgit v1.3