fix compilation warning with new rustc
This commit is contained in:
parent
e64f59723c
commit
630dcc274e
@ -160,8 +160,8 @@ pub fn main_core1() {
|
|||||||
Message::StartRequest => {
|
Message::StartRequest => {
|
||||||
info!("kernel starting");
|
info!("kernel starting");
|
||||||
if let Some(kernel) = loaded_kernel.take() {
|
if let Some(kernel) = loaded_kernel.take() {
|
||||||
core::mem::replace(&mut *KERNEL_CHANNEL_0TO1.lock(), Some(core1_rx));
|
*KERNEL_CHANNEL_0TO1.lock() = Some(core1_rx);
|
||||||
core::mem::replace(&mut *KERNEL_CHANNEL_1TO0.lock(), Some(core1_tx));
|
*KERNEL_CHANNEL_1TO0.lock() = Some(core1_tx);
|
||||||
unsafe {
|
unsafe {
|
||||||
KERNEL_IMAGE = &kernel as *const KernelImage;
|
KERNEL_IMAGE = &kernel as *const KernelImage;
|
||||||
kernel.exec();
|
kernel.exec();
|
||||||
|
Loading…
Reference in New Issue
Block a user