changed page allocation to happen on page fault for performance reasons
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use core::arch::x86_64::__cpuid;
|
||||
|
||||
use libk::drivers::memory::FoundryOSFrameAllocator;
|
||||
use spin::Lazy;
|
||||
use x86_64::{
|
||||
PhysAddr, VirtAddr,
|
||||
@@ -12,10 +13,7 @@ use x86_64::{
|
||||
|
||||
use crate::serial_print;
|
||||
|
||||
use super::{
|
||||
cpu::model_specific_registers::*, memmap::PHYSICAL_MEMORY_OFFSET,
|
||||
memory::FoundryOSFrameAllocator,
|
||||
};
|
||||
use super::{cpu::model_specific_registers::*, memmap::PHYSICAL_MEMORY_OFFSET};
|
||||
|
||||
const IA32_APIC_BASE_MSR: u32 = 0x1b;
|
||||
const IA32_APIC_BASE_MSR_BSP: u64 = 0x100;
|
||||
|
||||
Reference in New Issue
Block a user