diff options
Diffstat (limited to 'include/04.idt/deo11')
| -rw-r--r-- | include/04.idt/deo11 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/04.idt/deo11 b/include/04.idt/deo11 new file mode 100644 index 0000000..055e22a --- /dev/null +++ b/include/04.idt/deo11 @@ -0,0 +1,14 @@ +void init_pic() +{ + ioport_out(PIC1_COMMAND_PORT, 0x11); + ioport_out(PIC2_COMMAND_PORT, 0x11); + ioport_out(PIC1_DATA_PORT, 0x20); + ioport_out(PIC2_DATA_PORT, 0x28); + ioport_out(PIC1_DATA_PORT, 0x04); + ioport_out(PIC2_DATA_PORT, 0x02); + ioport_out(PIC1_DATA_PORT, 0x01); + ioport_out(PIC2_DATA_PORT, 0x01); + ioport_out(PIC1_DATA_PORT, 0xff); + ioport_out(PIC2_DATA_PORT, 0xff); + ioport_out(PIC1_DATA_PORT, 0xFC); +} |
