We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f328c43 + 4cdf8c4 commit bb92e9eCopy full SHA for bb92e9e
common/src/load_kernel.rs
@@ -269,7 +269,7 @@ where
269
// map additional frames for `.bss` memory that is not present in source file
270
let start_page: Page =
271
Page::containing_address(VirtAddr::new(align_up(zero_start.as_u64(), Size4KiB::SIZE)));
272
- let end_page = Page::containing_address(zero_end);
+ let end_page = Page::containing_address(zero_end - 1u64);
273
for page in Page::range_inclusive(start_page, end_page) {
274
// allocate a new unused frame
275
let frame = self.frame_allocator.allocate_frame().unwrap();
0 commit comments