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 3085217 commit b9a4609Copy full SHA for b9a4609
src/binary/load_kernel.rs
@@ -232,7 +232,7 @@ where
232
let new_bytes_ptr = new_frame.start_address().as_u64() as *mut u8;
233
unsafe {
234
core::ptr::write_bytes(
235
- new_bytes_ptr.add(data_bytes_before_zero),
+ new_bytes_ptr.add(data_bytes_before_zero as usize),
236
0,
237
(Size4KiB::SIZE - data_bytes_before_zero) as usize,
238
);
0 commit comments