File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -17,27 +17,27 @@ pub trait PlicExt {
17
17
/// Is this M-Mode interrupt enabled on given hart?
18
18
fn is_enabled ( hart_id : usize , interrupt : Self :: Interrupt ) -> bool ;
19
19
/// Enable an interrupt for a given hart
20
- ///
20
+ ///
21
21
/// # Safety
22
- ///
22
+ ///
23
23
/// May effect normal interrupt handling procedure
24
24
unsafe fn unmask ( hart_id : usize , interrupt : Self :: Interrupt ) ;
25
25
/// Disable an interrupt for a given hart
26
26
fn mask ( hart_id : usize , interrupt : Self :: Interrupt ) ;
27
27
/// Get global priority for one interrupt
28
28
fn get_priority ( interrupt : Self :: Interrupt ) -> Priority ;
29
29
/// Globally set priority for one interrupt
30
- ///
30
+ ///
31
31
/// # Safety
32
- ///
32
+ ///
33
33
/// May effect normal interrupt handling procedure
34
34
unsafe fn set_priority ( interrupt : Self :: Interrupt , prio : Priority ) ;
35
35
/// Get priority threshold for a given hart
36
36
fn get_threshold ( hart_id : usize ) -> Priority ;
37
37
/// Set the priority threshold for a given hart
38
- ///
38
+ ///
39
39
/// # Safety
40
- ///
40
+ ///
41
41
/// May effect normal interrupt handling procedure
42
42
unsafe fn set_threshold ( hart_id : usize , threshold : Priority ) ;
43
43
/// Mark that given hart have claimed to handle this interrupt
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ impl<UART> Serial<UART> {
34
34
Tx { uart : self . uart } ,
35
35
Rx {
36
36
// clippy allow: inner marker variable only indicates ownership, does not include actual data
37
- uart : unsafe { #[ allow( clippy:: uninit_assumed_init) ] mem:: MaybeUninit :: uninit ( ) . assume_init ( ) } ,
37
+ uart : unsafe {
38
+ #[ allow( clippy:: uninit_assumed_init) ]
39
+ mem:: MaybeUninit :: uninit ( ) . assume_init ( )
40
+ } ,
38
41
} ,
39
42
)
40
43
}
You can’t perform that action at this time.
0 commit comments