mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 20:03:22 +00:00
Fix memory region glob re-export
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e3adb6e482
commit
5012779e38
@ -14,7 +14,7 @@ pub mod multiboot2;
|
||||
use self::multiboot2::*;
|
||||
|
||||
pub mod memory_region;
|
||||
pub use memory_region::*;
|
||||
use self::memory_region::MemoryRegion;
|
||||
|
||||
use alloc::{string::String, vec::Vec};
|
||||
use spin::Once;
|
||||
|
@ -2,8 +2,9 @@ use alloc::{string::ToString, vec::Vec};
|
||||
use multiboot2::{BootInformation, BootInformationHeader, MemoryAreaType};
|
||||
|
||||
use super::{
|
||||
BootloaderAcpiArg, BootloaderFramebufferArg, MemoryRegion, MemoryRegionType, ACPI_RSDP,
|
||||
BOOTLOADER_NAME, FRAMEBUFFER_INFO, INITRAMFS, KERNEL_COMMANDLINE, MEMORY_REGIONS,
|
||||
memory_region::{MemoryRegion, MemoryRegionType},
|
||||
BootloaderAcpiArg, BootloaderFramebufferArg, ACPI_RSDP, BOOTLOADER_NAME, FRAMEBUFFER_INFO,
|
||||
INITRAMFS, KERNEL_COMMANDLINE, MEMORY_REGIONS,
|
||||
};
|
||||
use core::{arch::global_asm, mem::swap};
|
||||
use spin::Once;
|
||||
|
@ -3,7 +3,7 @@ use buddy_system_allocator::FrameAllocator;
|
||||
use log::info;
|
||||
use spin::Once;
|
||||
|
||||
use crate::arch::boot::{MemoryRegion, MemoryRegionType};
|
||||
use crate::arch::boot::memory_region::{MemoryRegion, MemoryRegionType};
|
||||
use crate::{config::PAGE_SIZE, sync::SpinLock};
|
||||
|
||||
use super::{frame::VmFrameFlags, VmFrame};
|
||||
|
@ -29,7 +29,7 @@ pub use self::{
|
||||
use alloc::vec::Vec;
|
||||
use spin::Once;
|
||||
|
||||
use crate::arch::boot::{MemoryRegion, MemoryRegionType};
|
||||
use crate::arch::boot::memory_region::{MemoryRegion, MemoryRegionType};
|
||||
|
||||
/// Convert physical address to virtual address using offset, only available inside jinux-frame
|
||||
pub(crate) fn paddr_to_vaddr(pa: usize) -> usize {
|
||||
|
Reference in New Issue
Block a user