forked from M-Labs/zynq-rs
szl: replace as with cast
This commit is contained in:
parent
01fdb5dd95
commit
ed83a6d8af
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue