Skip to content

Commit fdf1ad6

Browse files
committed
Small fix
1 parent 771b727 commit fdf1ad6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/plic.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ pub trait PlicExt {
1515
/// Interrupt wrapper type
1616
type Interrupt;
1717
/// Is this M-Mode interrupt enabled on given hart?
18-
fn is_enabled(hart_id: usize, interrupt: Interrupt) -> bool;
18+
fn is_enabled(hart_id: usize, interrupt: Self::Interrupt) -> bool;
1919
/// Enable an interrupt for a given hart
20-
fn enable(hart_id: usize, interrupt: Interrupt);
20+
fn enable(hart_id: usize, interrupt: Self::Interrupt);
2121
/// Disable an interrupt for a given hart
22-
fn disable(hart_id: usize, interrupt: Interrupt);
22+
fn disable(hart_id: usize, interrupt: Self::Interrupt);
2323
/// Get global priority for one interrupt
24-
fn get_priority(interrupt: Interrupt) -> Priority;
24+
fn get_priority(interrupt: Self::Interrupt) -> Priority;
2525
/// Globally set priority for one interrupt
26-
unsafe fn set_priority(interrupt: Interrupt, prio: Priority);
26+
unsafe fn set_priority(interrupt: Self::Interrupt, prio: Priority);
2727
/// Get priority threshold for a given hart
2828
fn get_threshold(hart_id: usize) -> Priority;
2929
/// Set the priority threshold for a given hart
3030
unsafe fn set_threshold(hart_id: usize, threshold: Priority);
3131
/// Mark that given hart have claimed to handle this interrupt
32-
fn claim(hart_id: usize) -> Option<Interrupt>;
32+
fn claim(hart_id: usize) -> Option<Self::Interrupt>;
3333
/// Mark that given hart have completed handling this interrupt
34-
fn complete(hart_id: usize, interrupt: Interrupt);
34+
fn complete(hart_id: usize, interrupt: Self::Interrupt);
3535
/// Is this interrupt claimed and under procceeding?
36-
fn is_pending(interrupt: Interrupt) -> bool;
36+
fn is_pending(interrupt: Self::Interrupt) -> bool;
3737
}
3838

3939
impl PlicExt for PLIC {

0 commit comments

Comments
 (0)