diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-12 10:28:04 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-12 10:28:04 +0200 |
| commit | 457a2117706cdaee34f894e67c89da7bf29f6143 (patch) | |
| tree | e3a1a519c5360abcca95732500594c92af9af51c /src/int/pic.c | |
| parent | 39713a3736145483dd3310c3605f940ca34f05c3 (diff) | |
Refactoring
Diffstat (limited to 'src/int/pic.c')
| -rw-r--r-- | src/int/pic.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/int/pic.c b/src/int/pic.c deleted file mode 100644 index d509e1d..0000000 --- a/src/int/pic.c +++ /dev/null @@ -1,28 +0,0 @@ -#include "pic.h" -#include "core/asm.h" -#include "core/mem.h" -#include "core/syscall.h" - -void pic_init(){ - - // ICW1: Initialisation - outbj(0x20,0x11); // Master - outbj(0xA0,0x11); // Slave - - // ICW2: Map IRQ index to entry into the IDT - outbj(0x21,0x20); // Start interrupt at offset 0x20 in IDT (index 32) - outbj(0xA1,0x70); // Start interrupt at offset 0x50 in IDT (index 80) - - // ICW3: Indicate the connection between master and slave - outbj(0x21,0x02); // Slave connected to pin 2 - outbj(0xA1,0x01); // Indicate pin id to the slave (2-1) - - // ICW4: Operating mode - outbj(0x21,0x01); // Default operating mode - outbj(0xA1,0x01); // Default operating mode - - // OCW: Masking - outbj(0x21,0b11111100); -} - - |
