From 4005b0f1cae5aea9dea0941073bf9923f991cc9e Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 28 May 2024 02:49:23 +0800 Subject: [PATCH] update abi mappings and clear out a comment that i think is old --- services/xous-swapper/src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/services/xous-swapper/src/main.rs b/services/xous-swapper/src/main.rs index 5e732590d..6d0006779 100644 --- a/services/xous-swapper/src/main.rs +++ b/services/xous-swapper/src/main.rs @@ -92,7 +92,7 @@ pub enum SwapAbi { Invalid = 0, ClearMemoryNow = 1, GetFreePages = 2, - // FetchAllocs = 3, + // RetrievePage = 3, // meant to be initiated within the kernel to itself // HardOom = 4, // meant to be initiated within the kernel to itself StealPage = 5, ReleaseMemory = 6, @@ -104,7 +104,7 @@ impl SwapAbi { match val { 1 => ClearMemoryNow, 2 => GetFreePages, - // 3 => FetchAllocs, + // 3 => RetrievePage, // 4 => HardOom, 5 => StealPage, 6 => ReleaseMemory, @@ -494,9 +494,6 @@ fn swap_handler( panic!("Couldn't resolve swapped data. Was the page actually swapped?") } }; - // for some reason, `paddr_in_swap` must be printed for the routine to not crash. Or the delay - // after `pt_walk` is necessary. Either way, it's spooky. I wonder if there isn't some minimum - // time between reads from the SPIM that we're violating?? #[cfg(feature = "debug-print")] writeln!(DebugUart {}, "RFS PID{} VA {:x} PA {:x}", pid, vaddr_in_pid, paddr_in_swap).ok(); // clear the used bit in swap