psychosisinteractive / vitalityx

VitalityX, Bootloader/OS/Kernel, Exomonolothicmicrokernel
Other
2 stars 1 forks source link

Fix non-critical interrupts (e.g. keyboard) #3

Closed nougatchi closed 4 years ago

nougatchi commented 4 years ago

Possible sources of the problem

kernel

libc

drivers

IRQ0 (timer) never gets hit, nor does IRQ1 (keyboard) get hit.

Graph of where the errors could be

              +---+ improper driver?? +-----+
         +---->PIC<-------------------+pic.c|
         |    +-+-+                   +-----+
         |      |
         |      |
         |      |
         |      |
         |    +-v-+  improper idt???  +-----------+
         |    |IDT<-------------------+interrupt.c|
         |    +-+-+                   +-----------+
         |      |
         |      |
         |      |
         |      |
         |    +-v-+  improper isr???? +-----+
         +----+ISR<-------------------+isr.c|
not sending   +-+-+                   +-----+
   pic eoi??    |
                |
                |
              +-v+ bad ps/2 init????? +----------+
              |KB<--------------------+keyboard.c|
              +--+                    +----------+
nougatchi commented 4 years ago

Seems to be under control, rewriting some of the interrupts.