mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Updated gitignore
This commit is contained in:
parent
6e5a09981a
commit
46094a0e96
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
|||||||
*.dis
|
*.dis
|
||||||
*.elf
|
*.elf
|
||||||
*.sym
|
*.sym
|
||||||
|
.DS_STORE
|
||||||
|
@ -129,9 +129,11 @@ void register_interrupt_handler(u8 n, isr_t handler) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void irq_handler(registers_t r) {
|
void irq_handler(registers_t r) {
|
||||||
/* If the irq involves the slave (IRQ > 7), send an EOI to it */
|
/* After every interrupt we need to send an EOI to the PICs
|
||||||
if (r.int_no >= 40) port_byte_out(0xA0, 0x20);
|
* or they will not send another interrupt again */
|
||||||
port_byte_out(0x20, 0x20); /* Send EOI to master */
|
if (r.int_no >= 40) port_byte_out(0xA0, 0x20); /* slave */
|
||||||
|
port_byte_out(0x20, 0x20); /* master */
|
||||||
|
|
||||||
/* Handle the interrupt in a more modular way */
|
/* Handle the interrupt in a more modular way */
|
||||||
if (interrupt_handlers[r.int_no] != 0) {
|
if (interrupt_handlers[r.int_no] != 0) {
|
||||||
isr_t handler = interrupt_handlers[r.int_no];
|
isr_t handler = interrupt_handlers[r.int_no];
|
||||||
|
Loading…
Reference in New Issue
Block a user