fix compilation warning with new rustc

core0-buffer
parent e64f59723c
commit 630dcc274e
  1. 4
      src/runtime/src/kernel/core1.rs

@ -160,8 +160,8 @@ pub fn main_core1() {
Message::StartRequest => {
info!("kernel starting");
if let Some(kernel) = loaded_kernel.take() {
core::mem::replace(&mut *KERNEL_CHANNEL_0TO1.lock(), Some(core1_rx));
core::mem::replace(&mut *KERNEL_CHANNEL_1TO0.lock(), Some(core1_tx));
*KERNEL_CHANNEL_0TO1.lock() = Some(core1_rx);
*KERNEL_CHANNEL_1TO0.lock() = Some(core1_tx);
unsafe {
KERNEL_IMAGE = &kernel as *const KernelImage;
kernel.exec();

Loading…
Cancel
Save