Move arch to seperate crate

This commit is contained in:
Jeremy Soller 2016-08-14 11:45:47 -06:00
commit 2730144e2a

View file

@ -0,0 +1,19 @@
//! Interrupt instructions
/// Clear interrupts
#[inline(always)]
pub unsafe fn clear_interrupts() {
asm!("cli" : : : : "intel", "volatile");
}
/// Set interrupts
#[inline(always)]
pub unsafe fn set_interrupts() {
asm!("sti" : : : : "intel", "volatile");
}
/// Halt instruction
#[inline(always)]
pub unsafe fn halt() {
asm!("hlt" : : : : "intel", "volatile");
}