mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add helper to extract vaddr prefixes (used by swapper to fliter candidates)
This commit is contained in:
parent
751042e202
commit
a57945e2c0
1 changed files with 2 additions and 0 deletions
|
|
@ -162,6 +162,8 @@ impl SwapAlloc {
|
|||
|
||||
pub fn vaddr(&self) -> usize { (self.vpn & !0xFFFu32) as usize }
|
||||
|
||||
pub fn vaddr_prefix(&self) -> u8 { (self.vpn >> 24) as u8 }
|
||||
|
||||
pub fn raw_vpn(&self) -> u32 { self.vpn }
|
||||
|
||||
pub fn timestamp(&self) -> u32 { self.timestamp }
|
||||
|
|
|
|||
Loading…
Reference in a new issue