Weird bug involving interrupts and multitasking
Posted: Sat Oct 26, 2024 11:37 am
Hello! I decided to ask for help here, for i honestly am not sure what to do.
I have been trying to implement cooperative multitasking in my OS, and am having a weird problem involving interrupts.
For some reason, while two tasks are active (taskA and taskB, constantly yielding between eachother), only the PIT interrupts get handled, i therefore see a blinking cursor. However, keyboard and mouse interrupts do not get handled, and i get nothing when i press keys and move my mouse.
The handlers get installed all the same.
The code can be viewed here https://github.com/theoriginalgrasshopp ... ltitasking
QEMU keyboard trace shows that events ARE fired while the two tasks are yielding.
I have been trying to implement cooperative multitasking in my OS, and am having a weird problem involving interrupts.
For some reason, while two tasks are active (taskA and taskB, constantly yielding between eachother), only the PIT interrupts get handled, i therefore see a blinking cursor. However, keyboard and mouse interrupts do not get handled, and i get nothing when i press keys and move my mouse.
The handlers get installed all the same.
The code can be viewed here https://github.com/theoriginalgrasshopp ... ltitasking
QEMU keyboard trace shows that events ARE fired while the two tasks are yielding.