Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65e833 commit f11d15dCopy full SHA for f11d15d
bios/stage-4/src/main.rs
@@ -58,7 +58,7 @@ pub extern "C" fn _start(info: &mut BiosInfo) -> ! {
58
let kernel_size = info.kernel.len;
59
let next_free_frame = match info.ramdisk.len {
60
0 => PhysFrame::containing_address(kernel_start + kernel_size - 1u64) + 1,
61
- _ => PhysFrame::containing_address(PhysAddr::new(info.ramdisk.start + info.ramdisk.len)) + 1
+ _ => PhysFrame::containing_address(PhysAddr::new(info.ramdisk.start + info.ramdisk.len - 1u64)) + 1
62
};
63
let mut frame_allocator = LegacyFrameAllocator::new_starting_at(
64
next_free_frame,
0 commit comments