Add docs [wip]
This commit is contained in:
parent
6018ac2b3d
commit
d92dea35af
|
@ -10,6 +10,9 @@ pub type VirtualAddress = usize;
|
||||||
|
|
||||||
use self::paging::PAGE_SIZE;
|
use self::paging::PAGE_SIZE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Frame is an addressable unit of the physical address space.
|
||||||
|
*/
|
||||||
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
pub struct Frame {
|
pub struct Frame {
|
||||||
number: usize,
|
number: usize,
|
||||||
|
|
|
@ -40,6 +40,9 @@ pub const PAGE_SIZE: usize = 4096;
|
||||||
|
|
||||||
pub const ENTRY_COUNT: usize = 512;
|
pub const ENTRY_COUNT: usize = 512;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Page is an addressable unit of the virtual address space.
|
||||||
|
*/
|
||||||
pub struct Page {
|
pub struct Page {
|
||||||
number: usize,
|
number: usize,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue