From d92dea35af124037240fc5b6201e2a784298ac9e Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Fri, 23 Feb 2018 16:50:02 +0200 Subject: [PATCH] Add docs [wip] --- src/arch/aarch64/memory/mod.rs | 3 +++ src/arch/aarch64/memory/paging/mod.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/arch/aarch64/memory/mod.rs b/src/arch/aarch64/memory/mod.rs index d56b669..3313cc0 100644 --- a/src/arch/aarch64/memory/mod.rs +++ b/src/arch/aarch64/memory/mod.rs @@ -10,6 +10,9 @@ pub type VirtualAddress = usize; use self::paging::PAGE_SIZE; +/** + * Frame is an addressable unit of the physical address space. + */ #[derive(Debug, PartialEq, Eq, PartialOrd, Ord)] pub struct Frame { number: usize, diff --git a/src/arch/aarch64/memory/paging/mod.rs b/src/arch/aarch64/memory/paging/mod.rs index 40321f1..0c4566e 100644 --- a/src/arch/aarch64/memory/paging/mod.rs +++ b/src/arch/aarch64/memory/paging/mod.rs @@ -40,6 +40,9 @@ pub const PAGE_SIZE: usize = 4096; pub const ENTRY_COUNT: usize = 512; +/** + * Page is an addressable unit of the virtual address space. + */ pub struct Page { number: usize, }