From 1b9fcbf593f4d4ad1b3d222575fe5999b44c474f Mon Sep 17 00:00:00 2001 From: Andrey Turkin Date: Sat, 19 Apr 2025 10:03:35 +0300 Subject: [PATCH] riscv: Remove SBI logger SBI needs a physical address; it used to work before because of the buggy code by sheer chance. Rather than trying to fix it the right way (find a mapping from virtual to physical both before and after RMM) let's just throw it away. Serial logger works just fine for the early init logging. --- src/arch/riscv64/debug.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/arch/riscv64/debug.rs b/src/arch/riscv64/debug.rs index 6c07fb5649..0e6ea54933 100644 --- a/src/arch/riscv64/debug.rs +++ b/src/arch/riscv64/debug.rs @@ -47,11 +47,6 @@ impl<'a> Writer<'a> { serial.write(buf); } } - - { - let buf = sbi_rt::Physical::new(buf.len(), buf.as_ptr() as usize, 0); - let _ = sbi_rt::console_write(buf).ok(); - } } }