Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bb92e9e

Browse filesBrowse files
authored
Merge pull request #362 from JarlEvanson/main
Fixed bug stemming from treating an exclusive range as an inclusive r…
2 parents f328c43 + 4cdf8c4 commit bb92e9e
Copy full SHA for bb92e9e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎common/src/load_kernel.rs

Copy file name to clipboardExpand all lines: common/src/load_kernel.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ where
269269
// map additional frames for `.bss` memory that is not present in source file
270270
let start_page: Page =
271271
Page::containing_address(VirtAddr::new(align_up(zero_start.as_u64(), Size4KiB::SIZE)));
272-
let end_page = Page::containing_address(zero_end);
272+
let end_page = Page::containing_address(zero_end - 1u64);
273273
for page in Page::range_inclusive(start_page, end_page) {
274274
// allocate a new unused frame
275275
let frame = self.frame_allocator.allocate_frame().unwrap();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.