From 75fbcd5be8c665bcb537acc391b24feab9595511 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 15 May 2025 11:54:02 +0800 Subject: [PATCH] fix some bit-rotted constant locations in the precursor target --- loader/src/platform/precursor/swap.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/loader/src/platform/precursor/swap.rs b/loader/src/platform/precursor/swap.rs index b150d3fcc..e73c0cafb 100644 --- a/loader/src/platform/precursor/swap.rs +++ b/loader/src/platform/precursor/swap.rs @@ -24,7 +24,7 @@ pub struct SwapHal { } impl SwapHal { - pub fn new(cfg: &BootConfig) -> Option { + pub fn new(cfg: &BootConfig, _perclk_freq: u32) -> Option { if let Some(swap) = cfg.swap { // safety: the swap source header is guaranteed to be aligned and initialized in memory // by the image creator. @@ -220,7 +220,7 @@ pub fn userspace_maps(cfg: &mut BootConfig) { cfg.map_page_32( root, addr, - SWAP_HAL_VADDR + PAGE_SIZE * i, + xous::arch::SWAP_HAL_VADDR + PAGE_SIZE * i, FLG_R | FLG_W | FLG_U | FLG_VALID, SWAPPER_PID, ); @@ -230,7 +230,7 @@ pub fn userspace_maps(cfg: &mut BootConfig) { cfg.map_page_32( root, utra::app_uart::HW_APP_UART_BASE, - SWAP_APP_UART_VADDR, + xous::arch::SWAP_APP_UART_VADDR, FLG_R | FLG_W | FLG_U | FLG_VALID, SWAPPER_PID, )