File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,7 @@ pub fn disable_interrupt<I: CoreInterruptNumber>(interrupt: I) {
107
107
///
108
108
/// # Note
109
109
///
110
- /// Interrupts will only be triggered if interrupts are globally enabled in the hart.
111
- /// To do this, you must call [`enable`] after enabling the interrupt.
110
+ /// Interrupts will only be triggered if globally enabled in the hart. To do this, use [`enable`].
112
111
///
113
112
/// # Safety
114
113
///
@@ -128,6 +127,11 @@ pub fn disable() {
128
127
129
128
/// Enables interrupts globally in the current hart (machine mode).
130
129
///
130
+ /// # Note
131
+ ///
132
+ /// Only enabled interrupt sources will be triggered.
133
+ /// To enable specific interrupt sources, use [`enable_interrupt`].
134
+ ///
131
135
/// # Safety
132
136
///
133
137
/// Enabling interrupts might break critical sections or other synchronization mechanisms.
Original file line number Diff line number Diff line change @@ -99,8 +99,7 @@ pub fn disable_interrupt<I: CoreInterruptNumber>(interrupt: I) {
99
99
///
100
100
/// # Note
101
101
///
102
- /// Interrupts will only be triggered if interrupts are globally enabled in the hart.
103
- /// To do this, you must call [`enable`] after enabling the interrupt.
102
+ /// Interrupts will only be triggered if globally enabled in the hart. To do this, use [`enable`].
104
103
///
105
104
/// # Safety
106
105
///
@@ -120,6 +119,11 @@ pub fn disable() {
120
119
121
120
/// Enables interrupts globally in the current hart (supervisor mode).
122
121
///
122
+ /// # Note
123
+ ///
124
+ /// Only enabled interrupt sources will be triggered.
125
+ /// To enable specific interrupt sources, use [`enable_interrupt`].
126
+ ///
123
127
/// # Safety
124
128
///
125
129
/// Enabling interrupts might break critical sections or other synchronization mechanisms.
Original file line number Diff line number Diff line change 1
1
//! mie register
2
2
3
- use riscv_pac:: CoreInterruptNumber ;
4
3
use crate :: bits:: { bf_extract, bf_insert} ;
4
+ use riscv_pac:: CoreInterruptNumber ;
5
5
6
6
read_write_csr ! {
7
7
/// `mie` register
Original file line number Diff line number Diff line change 1
1
//! sie register
2
2
3
+ use crate :: bits:: { bf_extract, bf_insert} ;
3
4
use riscv_pac:: CoreInterruptNumber ;
4
- use crate :: bits:: { bf_insert, bf_extract} ;
5
5
6
6
read_write_csr ! {
7
7
/// sie register
You can’t perform that action at this time.
0 commit comments