Add context and file structs

This commit is contained in:
Jeremy Soller 2016-08-14 18:16:56 -06:00
parent 49739d47e8
commit 4e270bb807
9 changed files with 88 additions and 14 deletions

View file

@ -2,13 +2,13 @@
/// Clear interrupts
#[inline(always)]
pub unsafe fn clear_interrupts() {
pub unsafe fn disable_interrupts() {
asm!("cli" : : : : "intel", "volatile");
}
/// Set interrupts
#[inline(always)]
pub unsafe fn set_interrupts() {
pub unsafe fn enable_interrupts() {
asm!("sti" : : : : "intel", "volatile");
}