Skip to content

Commit f8b2168

Browse files
committed
fix map_to_range_4kib
1 parent efd8589 commit f8b2168

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/structures/paging/mapper/mapped_page_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ impl<'a, P: PageTableFrameMapping> MappedPageTable<'a, P> {
546546
if !entry.is_unused() {
547547
return Err(MapToError::PageAlreadyMapped(frame));
548548
}
549-
entry.set_addr(frame.start_address(), flags | PageTableFlags::HUGE_PAGE);
549+
entry.set_addr(frame.start_address(), flags);
550550
Ok(())
551551
},
552552
(parent_table_flags, allocator),

src/structures/paging/mapper/recursive_page_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ impl<'a> RecursivePageTable<'a> {
715715
if !entry.is_unused() {
716716
return Err(MapToError::PageAlreadyMapped(frame));
717717
}
718-
entry.set_addr(frame.start_address(), flags | PageTableFlags::HUGE_PAGE);
718+
entry.set_addr(frame.start_address(), flags);
719719
Ok(())
720720
},
721721
(parent_table_flags, allocator),

0 commit comments

Comments
 (0)