From 46094a0e9615961480b6efa06490d669578326be Mon Sep 17 00:00:00 2001 From: Carlos Date: Fri, 20 Mar 2015 11:40:31 +0100 Subject: [PATCH] Updated gitignore --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 1 + 19-interrupts-irqs/cpu/isr.c | 8 +++++--- 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 7), send an EOI to it */ - if (r.int_no >= 40) port_byte_out(0xA0, 0x20); - port_byte_out(0x20, 0x20); /* Send EOI to master */ + /* After every interrupt we need to send an EOI to the PICs + * or they will not send another interrupt again */ + 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 */ if (interrupt_handlers[r.int_no] != 0) { isr_t handler = interrupt_handlers[r.int_no];