mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Move Frame::start_address to memory/mod.rs and use it in identity_map()
This commit is contained in:
@@ -150,7 +150,7 @@ impl RecursivePageTable {
|
||||
pub fn identity_map<A>(&mut self, frame: Frame, flags: EntryFlags, allocator: &mut A)
|
||||
where A: FrameAllocator
|
||||
{
|
||||
let page = Page { number: frame.number };
|
||||
let page = Page::containing_address(frame.start_address());
|
||||
self.map_to(&page, frame, flags, allocator)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user