update source to match draft

This commit is contained in:
acheronfail
2018-10-15 23:32:22 +10:00
committed by Philipp Oppermann
parent 87f6e734a9
commit 7ad0ed9254
5 changed files with 65 additions and 21 deletions

10
src/interrupts.rs Normal file
View File

@@ -0,0 +1,10 @@
use pic8259_simple::ChainedPics;
use spin;
pub const PIC_1_OFFSET: u8 = 32;
pub const PIC_2_OFFSET: u8 = PIC_1_OFFSET + 8;
pub static PICS: spin::Mutex<ChainedPics> =
spin::Mutex::new(unsafe { ChainedPics::new(PIC_1_OFFSET, PIC_2_OFFSET) });
pub const TIMER_INTERRUPT_ID: u8 = PIC_1_OFFSET;