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 <xobs@ci.betrusted.io>
This commit is contained in:
Sean Cross 2020-10-04 18:13:58 +08:00
parent bbab52be7f
commit 5f4ee01a0d

View file

@ -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]