Add rust lint CI job.
Some checks failed
Check / Check Rust (pull_request) Failing after 1s

This commit is contained in:
Drew 2025-12-13 23:16:33 -08:00
parent 311755c812
commit 5c3d4ac7a9
30 changed files with 177 additions and 108 deletions

View file

@ -95,7 +95,7 @@ impl Command {
command: SataCommand::DmaReadExt,
lba,
sector_cnt: lba_count,
paddr: paddr,
paddr,
memory_region: None,
}
}

View file

@ -44,9 +44,8 @@ impl PortController {
};
// This leaves space for 8 prdt entries.
for i in 0..32 {
command_list[i].command_table_base_addr =
(command_paddr + 0x500) + (0x100 * (i as u64));
for (i, header) in command_list.iter_mut().enumerate() {
header.command_table_base_addr = (command_paddr + 0x500) + (0x100 * (i as u64));
}
let command_slots = array::from_fn(|_| Arc::new(Mutex::new(CommandStatus::Empty)));