Skip to content

Commit fabaa61

Browse files
committedSep 17, 2023
Fix aml_tester
1 parent 066aa99 commit fabaa61

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

‎aml/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,8 @@ pub trait Handler: Send + Sync {
695695
/// 100 microseconds.
696696
fn stall(&self, microseconds: u64);
697697

698-
/// Sleep for at least the given number of **milliseconds**. An implementation may round to the closest sleep time
699-
/// supported, and should relinquish the processor.
698+
/// Sleep for at least the given number of **milliseconds**. An implementation may round to the closest sleep
699+
/// time supported, and should relinquish the processor.
700700
fn sleep(&self, milliseconds: u64);
701701

702702
fn handle_fatal_error(&self, fatal_type: u8, fatal_code: u32, fatal_arg: u64) {

‎aml_tester/src/main.rs

+7
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,11 @@ impl aml::Handler for Handler {
310310
fn write_pci_u32(&self, segment: u16, bus: u8, device: u8, function: u8, _offset: u16, value: u32) {
311311
println!("write_pci_u32 ({segment:#x}, {bus:#x}, {device:#x}, {function:#x})<-{value:#x}");
312312
}
313+
314+
fn stall(&self, microseconds: u64) {
315+
println!("Stalling for {}us", microseconds);
316+
}
317+
fn sleep(&self, milliseconds: u64) {
318+
println!("Sleeping for {}ms", milliseconds);
319+
}
313320
}

0 commit comments

Comments
 (0)