mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
Fix format errors
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
63499c675c
commit
5941d3e6eb
@ -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,
|
||||
};
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user