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 --- common/debug.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common/debug.c') diff --git a/common/debug.c b/common/debug.c index 1f5e872..36fed87 100644 --- a/common/debug.c +++ b/common/debug.c @@ -46,10 +46,15 @@ void setup_dmap_dbg() void setup_io_dbg(struct vmem *b) { - vm_t io_ptr = setup_kernel_io(b, dbg_info.dbg_ptr); + vm_t io_ptr = map_io_dbg(b); __setup_dbg(io_ptr, dbg_info.dev); } +vm_t map_io_dbg(struct vmem *b) +{ + return setup_kernel_io(b, dbg_info.dbg_ptr); +} + /* if there arises a need for more supported serial drivers, I should probably * try to implement some kind of basic driver subsystem, but this is good enough * for now. */ -- cgit v1.3