Skip to content

Commit

Permalink
fix(extern static): unsafe_op_in_unsafe_fn
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
  • Loading branch information
mkroening committed Apr 3, 2024
1 parent e30626f commit 6ee9da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ pub unsafe fn boot_kernel(kernel_info: LoadedKernel) -> ! {
let multiboot = unsafe { Multiboot::from_ptr(mb_info as u64, &mut mem).unwrap() };

// determine boot stack address
let mut new_stack = ptr::addr_of!(kernel_end)
let mut new_stack = unsafe { ptr::addr_of!(kernel_end) }
.addr()
.align_up(Size4KiB::SIZE as usize);

Expand Down

0 comments on commit 6ee9da5

Please # to comment.