1
0
Fork 0

szl: replace as with cast

This commit is contained in:
Simon Renblad 2024-10-17 16:43:17 +08:00
parent 01fdb5dd95
commit ed83a6d8af
1 changed files with 4 additions and 4 deletions

View File

@ -120,13 +120,13 @@ pub fn main_core0() {
slcr::BootModePins::Jtag => netboot::netboot( slcr::BootModePins::Jtag => netboot::netboot(
&mut bootgen_file, &mut bootgen_file,
config, config,
addr_of_mut!(__runtime_start) as *mut u8, addr_of_mut!(__runtime_start).cast(),
max_len, max_len,
), ),
slcr::BootModePins::SdCard => { slcr::BootModePins::SdCard => {
if boot_sd( if boot_sd(
&mut bootgen_file, &mut bootgen_file,
addr_of_mut!(__runtime_start) as *mut u8, addr_of_mut!(__runtime_start).cast(),
max_len, max_len,
) )
.is_err() .is_err()
@ -136,7 +136,7 @@ pub fn main_core0() {
netboot::netboot( netboot::netboot(
&mut bootgen_file, &mut bootgen_file,
config, config,
addr_of_mut!(__runtime_start) as *mut u8, addr_of_mut!(__runtime_start).cast(),
max_len, max_len,
) )
} }
@ -147,7 +147,7 @@ pub fn main_core0() {
netboot::netboot( netboot::netboot(
&mut bootgen_file, &mut bootgen_file,
config, config,
addr_of_mut!(__runtime_start) as *mut u8, addr_of_mut!(__runtime_start).cast(),
max_len, max_len,
) )
} }