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) {
107107///
108108/// # Note
109109///
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`].
112111///
113112/// # Safety
114113///
@@ -128,6 +127,11 @@ pub fn disable() {
128127
129128/// Enables interrupts globally in the current hart (machine mode).
130129///
130+ /// # Note
131+ ///
132+ /// Only enabled interrupt sources will be triggered.
133+ /// To enable specific interrupt sources, use [`enable_interrupt`].
134+ ///
131135/// # Safety
132136///
133137/// 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) {
9999///
100100/// # Note
101101///
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`].
104103///
105104/// # Safety
106105///
@@ -120,6 +119,11 @@ pub fn disable() {
120119
121120/// Enables interrupts globally in the current hart (supervisor mode).
122121///
122+ /// # Note
123+ ///
124+ /// Only enabled interrupt sources will be triggered.
125+ /// To enable specific interrupt sources, use [`enable_interrupt`].
126+ ///
123127/// # Safety
124128///
125129/// Enabling interrupts might break critical sections or other synchronization mechanisms.
Original file line number Diff line number Diff line change 11//! mie register
22
3- use riscv_pac:: CoreInterruptNumber ;
43use crate :: bits:: { bf_extract, bf_insert} ;
4+ use riscv_pac:: CoreInterruptNumber ;
55
66read_write_csr ! {
77 /// `mie` register
Original file line number Diff line number Diff line change 11//! sie register
22
3+ use crate :: bits:: { bf_extract, bf_insert} ;
34use riscv_pac:: CoreInterruptNumber ;
4- use crate :: bits:: { bf_insert, bf_extract} ;
55
66read_write_csr ! {
77/// sie register
You can’t perform that action at this time.
0 commit comments