Skip to content

Commit 42d5870

Browse files
committed
Fix CI
1 parent 066aa99 commit 42d5870

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Diff for: 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) {

Diff for: aml/src/test_utils.rs

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ impl Handler for TestHandler {
6868
fn write_pci_u32(&self, _segment: u16, _bus: u8, device: u8, _function: u8, _offset: u16, _value: u32) {
6969
unimplemented!()
7070
}
71+
fn stall(&self, _microseconds: u64) {
72+
unimplemented!()
73+
}
74+
fn sleep(&self, _milliseconds: u64) {
75+
unimplemented!()
76+
}
7177
}
7278

7379
pub(crate) fn make_test_context() -> AmlContext {

Diff for: 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)