Skip to content

Commit

Permalink
crates/sel4-microkit: Improve toolchain compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 30, 2024
1 parent 6f047c0 commit 01559ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/sel4-microkit/base/src/symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,9 @@ pub fn ipc_buffer_ptr() -> *mut sel4::IpcBuffer {
static mut __sel4_ipc_buffer_obj: sel4::IpcBuffer;
}

ptr::addr_of_mut!(__sel4_ipc_buffer_obj)
// Only unsafe until 1.82
#[allow(unused_unsafe)]
unsafe {
ptr::addr_of_mut!(__sel4_ipc_buffer_obj)
}
}

0 comments on commit 01559ce

Please sign in to comment.