diff options
author | kaashoek <kaashoek> | 2006-06-22 01:28:57 +0000 |
---|---|---|
committer | kaashoek <kaashoek> | 2006-06-22 01:28:57 +0000 |
commit | 21a88fd487177841c882d9017bd9f4476801c6f6 (patch) | |
tree | bfa061e00662efde2186d6c0498fc78f889356ce /picirq.c | |
parent | 7baa34a421e4c970ee90c2537ceacd7230f2474e (diff) | |
download | xv6-labs-21a88fd487177841c882d9017bd9f4476801c6f6.tar.gz xv6-labs-21a88fd487177841c882d9017bd9f4476801c6f6.tar.bz2 xv6-labs-21a88fd487177841c882d9017bd9f4476801c6f6.zip |
checkpoint. booting second processor. stack is messed up, but thanks to cliff
and plan 9 code, at least boots and gets into C code.
Diffstat (limited to 'picirq.c')
-rw-r--r-- | picirq.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -4,15 +4,6 @@ #include "x86.h" #include "defs.h" -#define MAX_IRQS 16 // Number of IRQs - -// I/O Addresses of the two 8259A programmable interrupt controllers -#define IO_PIC1 0x20 // Master (IRQs 0-7) -#define IO_PIC2 0xA0 // Slave (IRQs 8-15) - -#define IRQ_SLAVE 2 // IRQ at which slave connects to master -#define IRQ_OFFSET 32 // IRQ 0 corresponds to int IRQ_OFFSET - // Current IRQ mask. // Initial IRQ mask has interrupt 2 enabled (for slave 8259A). uint16_t irq_mask_8259A = 0xFFFF & ~(1<<IRQ_SLAVE); |