make the app uart configurable

so processes other than swap can use it
This commit is contained in:
bunnie 2024-12-22 00:29:50 +08:00
parent d1835f8e4b
commit b66b60497b

View file

@ -429,6 +429,8 @@ pub fn userspace_maps(cfg: &mut BootConfig) {
udma_uart.write(b"APP UART INIT OK\n\r"); udma_uart.write(b"APP UART INIT OK\n\r");
#[cfg(feature = "userspace-swap-debug")]
{
// map the debug UART HW page // map the debug UART HW page
cfg.map_page_32( cfg.map_page_32(
root, root,
@ -447,4 +449,5 @@ pub fn userspace_maps(cfg: &mut BootConfig) {
FLG_R | FLG_W | FLG_U | FLG_VALID, FLG_R | FLG_W | FLG_U | FLG_VALID,
SWAPPER_PID, SWAPPER_PID,
); );
}
} }