Fix format errors

This commit is contained in:
Jianfeng Jiang
2024-03-22 06:40:31 +00:00
committed by Tate, Hongliang Tian
parent 63499c675c
commit 5941d3e6eb
4 changed files with 17 additions and 7 deletions

View File

@ -8,8 +8,8 @@ use crate::{
arch::mm::{PageTableEntry, PageTableFlags},
prelude::*,
vm::{
is_page_aligned, VmAllocOptions, VmFrame, VmFrameVec, VmReader, VmWriter,
PHYS_MEM_BASE_VADDR, PAGE_SIZE,
is_page_aligned, VmAllocOptions, VmFrame, VmFrameVec, VmReader, VmWriter, PAGE_SIZE,
PHYS_MEM_BASE_VADDR,
},
Error,
};

View File

@ -37,7 +37,7 @@ use crate::boot::memory_region::{MemoryRegion, MemoryRegionType};
pub const PAGE_SIZE: usize = 0x1000;
/// The maximum virtual address of user space (non inclusive).
///
///
/// Typicall 64-bit systems have at least 48-bit virtual address space.
/// A typical way to reserve half of the address space for the kernel is
/// to use the highest 48-bit virtual address space.
@ -49,7 +49,7 @@ pub const PAGE_SIZE: usize = 0x1000;
pub const MAX_USERSPACE_VADDR: Vaddr = 0x0000_8000_0000_0000 - PAGE_SIZE;
/// Start of the kernel address space.
///
///
/// This is the _lowest_ address of the x86-64's _high_ canonical addresses.
///
/// This is also the base address of the direct mapping of all physical