Create a memory::paging::entry submodule with an Entry struct

master
Philipp Oppermann 8 years ago
parent c7c02d7dca
commit c4c27c10e6

@ -0,0 +1,13 @@
use memory::Frame;
pub struct Entry(u64);
impl Entry {
pub fn is_unused(&self) -> bool {
self.0 == 0
}
pub fn set_unused(&mut self) {
self.0 = 0;
}
}

@ -1,5 +1,7 @@
use memory::PAGE_SIZE; use memory::PAGE_SIZE;
mod entry;
const ENTRY_COUNT: usize = 512; const ENTRY_COUNT: usize = 512;
pub type PhysicalAddress = usize; pub type PhysicalAddress = usize;

Loading…
Cancel
Save