mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
make the release page mechanism visible externally for swap config
This commit is contained in:
parent
47a16b6ce4
commit
6806403da8
1 changed files with 6 additions and 0 deletions
|
|
@ -667,6 +667,12 @@ impl MemoryManager {
|
|||
self.claim_release_move(addr, pid, ClaimReleaseMove::Release)
|
||||
}
|
||||
|
||||
#[cfg(feature = "swap")]
|
||||
/// Same as `release_page`, but with public visibility when the `swap` feature is active
|
||||
pub fn release_page_swap(&mut self, addr: *mut usize, pid: PID) -> Result<(), xous_kernel::Error> {
|
||||
self.claim_release_move(addr, pid, ClaimReleaseMove::Release)
|
||||
}
|
||||
|
||||
/// Convert an offset in the `MEMORY_ALLOCATIONS` array into a physical address.
|
||||
#[cfg(baremetal)]
|
||||
fn allocation_offset_to_address(&self, offset: usize) -> Option<usize> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue