mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 04:14:17 +08:00
Interrupt enable and nop function
This commit is contained in:
parent
3a24938387
commit
b83bdb3643
@ -23,6 +23,12 @@ pub unsafe fn halt() {
|
||||
::std::thread::yield_now();
|
||||
}
|
||||
|
||||
/// Set interrupts and nop
|
||||
#[inline(always)]
|
||||
pub unsafe fn enable_and_nop() {
|
||||
enable();
|
||||
}
|
||||
|
||||
/// Set interrupts and halt
|
||||
#[inline(always)]
|
||||
pub unsafe fn enable_and_halt() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user