Fix memory region glob re-export

This commit is contained in:
Zhang Junyang
2023-07-24 15:23:17 +08:00
committed by Tate, Hongliang Tian
parent e3adb6e482
commit 5012779e38
4 changed files with 6 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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};

View File

@ -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 {