summaryrefslogtreecommitdiffstats
path: root/rsnix/src/memory.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/memory.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/memory.rs')
-rw-r--r--rsnix/src/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsnix/src/memory.rs b/rsnix/src/memory.rs
index 54ff7be..7c3eda0 100644
--- a/rsnix/src/memory.rs
+++ b/rsnix/src/memory.rs
@@ -89,7 +89,7 @@ fn align_up(x: usize, a: usize) -> usize {
89unsafe fn free_list_insert(block: *mut Header) { 89unsafe fn free_list_insert(block: *mut Header) {
90 let addr = block as usize; 90 let addr = block as usize;
91 let mut prev: *mut Header = ptr::null_mut(); 91 let mut prev: *mut Header = ptr::null_mut();
92 let mut cur = FREE_LIST; 92 let mut cur = unsafe { FREE_LIST };
93 while !cur.is_null() && (cur as usize) < addr { 93 while !cur.is_null() && (cur as usize) < addr {
94 prev = cur; 94 prev = cur;
95 cur = unsafe { (*(*cur).links()).next }; 95 cur = unsafe { (*(*cur).links()).next };