From d82bb75e694c7e0bb7efb9fb877e41241f7c40e8 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Tue, 8 Oct 2024 14:37:25 +0800 Subject: [PATCH] fixup --- experiments/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index c832e80..1311c2e 100644 --- a/experiments/src/main.rs +++ b/experiments/src/main.rs @@ -6,6 +6,7 @@ extern crate alloc; use alloc::collections::BTreeMap; use core::arch::asm; +use core::ptr::addr_of_mut; use libasync::{ delay, smoltcp::{Sockets, TcpStream}, @@ -70,7 +71,7 @@ interrupt_handler!(IRQ, irq, __irq_stack0_start, __irq_stack1_start, { if id.0 == 0 { gic.end_interrupt(id); asm::exit_irq(); - SP.write(&mut __stack1_start as *mut _ as u32); + SP.write(addr_of_mut!(__stack1_start) as *mut _ as u32); asm::enable_irq(); CORE1_RESTART.store(false, Ordering::Relaxed); notify_spin_lock();