Commit e6019cfd by malcolm

Added message back to PIC to signal end of int

parent e03b9581
Showing with 1 additions and 2 deletions
...@@ -9,7 +9,7 @@ void pit_irq() ...@@ -9,7 +9,7 @@ void pit_irq()
{ {
asm volatile ("add %esp, 12; pushad"); asm volatile ("add %esp, 12; pushad");
_pit_ticks++; _pit_ticks++;
//TODO: NEED TO SEND DONE MESSAGE BACK pic_command(PIC_OCW2_EOI, 0);
asm volatile("popad; iretd"); asm volatile("popad; iretd");
} }
...@@ -67,7 +67,6 @@ void pit_start_counter(uint32_t frequency, uint8_t counter, uint8_t mode) ...@@ -67,7 +67,6 @@ void pit_start_counter(uint32_t frequency, uint8_t counter, uint8_t mode)
void pit_init(); void pit_init();
{ {
//TODO: NEED TO SET INT 32 TO PIT IRQ HANDLER
install_ir(32, IDT_PR|IDT_32, 0x8, pit_irq); install_ir(32, IDT_PR|IDT_32, 0x8, pit_irq);
_pit_is_init = true; _pit_is_init = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment