summaryrefslogtreecommitdiffstats
path: root/rsnix/src/interrupts.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-08-01 03:47:51 +0200
committersalmonik <salmonik@tuta.io>2026-08-01 03:47:51 +0200
commit7c5603b2fed27be86982665a8b10dcd8f1c5a483 (patch)
treee808380c9411c1847ff12aa2a35c94776b1f5292 /rsnix/src/interrupts.rs
parentClean up warnings, fix FAT32 multi-cluster dirs, prep for edition 2024 (diff)
downloadrs-dos-7c5603b2fed27be86982665a8b10dcd8f1c5a483.tar.gz
rs-dos-7c5603b2fed27be86982665a8b10dcd8f1c5a483.zip
Bump workspace to edition 2024
- edition = "2024" in the workspace manifest and rsdosedit - extern blocks must be unsafe: interrupts.rs ISR stubs -> unsafe extern "C" - #[no_mangle] -> #[unsafe(no_mangle)] (efi_main, isr_dispatch) - One missed static-mut read in free_list_insert wrapped in an explicit unsafe block (edition 2024 removed the implicit unsafe context inside unsafe fns) - rustfmt reflows for 2024: nested if-lets become let-chains, imports re-sorted, rsdosedit help-screen box rows wrapped No codegen-affecting changes. Validated: cargo check/clippy/fmt clean (host + uefi target), make test-disk PASS, editor round-trip PASS.
Diffstat (limited to 'rsnix/src/interrupts.rs')
-rw-r--r--rsnix/src/interrupts.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsnix/src/interrupts.rs b/rsnix/src/interrupts.rs
index cbd234e..2b82a3d 100644
--- a/rsnix/src/interrupts.rs
+++ b/rsnix/src/interrupts.rs
@@ -256,7 +256,7 @@ struct IntFrame {
256} 256}
257 257
258/// Called from the asm common handler — dispatches to the right Rust handler. 258/// Called from the asm common handler — dispatches to the right Rust handler.
259#[no_mangle] 259#[unsafe(no_mangle)]
260unsafe extern "C" fn isr_dispatch(frame: &IntFrame) { 260unsafe extern "C" fn isr_dispatch(frame: &IntFrame) {
261 unsafe { 261 unsafe {
262 match frame.vector { 262 match frame.vector {
@@ -344,7 +344,7 @@ pub fn init() {
344// --------------------------------------------------------------------------- 344// ---------------------------------------------------------------------------
345// Extern symbols from global_asm! 345// Extern symbols from global_asm!
346// --------------------------------------------------------------------------- 346// ---------------------------------------------------------------------------
347extern "C" { 347unsafe extern "C" {
348 fn isr_stub_32(); 348 fn isr_stub_32();
349 fn isr_stub_33(); 349 fn isr_stub_33();
350 fn isr_stub_spurious(); 350 fn isr_stub_spurious();