Use metadata to track VmFrames

In this commit, the frame metadata storage schema is implemented. The bootstrap process is refactored
and a boot page table is introduced to perform early stage metadata mapping. The metadata is then used
to track `VmFrame`s instead of the former `Arc` approach.
This commit is contained in:
Zhang Junyang
2024-05-15 05:41:30 +00:00
committed by Tate, Hongliang Tian
parent d24ddaae66
commit 69d464fc6b
19 changed files with 1433 additions and 205 deletions

View File

@ -14,7 +14,7 @@ use crate::{
prelude::*,
sync::SpinLock,
trap::disable_local,
vm::{frame_allocator::FRAME_ALLOCATOR, PAGE_SIZE},
vm::{frame::allocator::FRAME_ALLOCATOR, PAGE_SIZE},
Error,
};