From 5f4ee01a0da449a150b04002c3ce14cf16f5729e Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 4 Oct 2020 18:13:58 +0800 Subject: [PATCH] kernel: use fixed address for debug port Don't use the hardware address, since it is not likely to be in the universal address space. Signed-off-by: Sean --- kernel/src/debug.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/src/debug.rs b/kernel/src/debug.rs index 1d79c9688..620737094 100644 --- a/kernel/src/debug.rs +++ b/kernel/src/debug.rs @@ -1,11 +1,10 @@ use core::fmt::{Error, Write}; -use utra; #[macro_use] #[cfg(all(not(test), any(feature = "debug-print", feature = "print-panics")))] pub mod debug_print_hardware { use crate::debug::*; pub const SUPERVISOR_UART: Uart = Uart { - base: utra::HW_UART_BASE as *mut usize, + base: 0xffcf_0000 as *mut usize, }; #[macro_export]