diff --git a/szl/src/main.rs b/szl/src/main.rs index 0c98f3f..735dda8 100644 --- a/szl/src/main.rs +++ b/szl/src/main.rs @@ -120,13 +120,13 @@ pub fn main_core0() { slcr::BootModePins::Jtag => netboot::netboot( &mut bootgen_file, config, - addr_of_mut!(__runtime_start) as *mut u8, + addr_of_mut!(__runtime_start).cast(), max_len, ), slcr::BootModePins::SdCard => { if boot_sd( &mut bootgen_file, - addr_of_mut!(__runtime_start) as *mut u8, + addr_of_mut!(__runtime_start).cast(), max_len, ) .is_err() @@ -136,7 +136,7 @@ pub fn main_core0() { netboot::netboot( &mut bootgen_file, config, - addr_of_mut!(__runtime_start) as *mut u8, + addr_of_mut!(__runtime_start).cast(), max_len, ) } @@ -147,7 +147,7 @@ pub fn main_core0() { netboot::netboot( &mut bootgen_file, config, - addr_of_mut!(__runtime_start) as *mut u8, + addr_of_mut!(__runtime_start).cast(), max_len, ) }