8000
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 0b4a415 commit 9a39818Copy full SHA for 9a39818
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