vlang / vinix

Vinix is an effort to write a modern, fast, and useful operating system in the V programming language
https://vlang.io
GNU General Public License v2.0
1.89k stars 120 forks source link

kern/console: Move ps2 enabling to irq thread #140

Closed Qwinci closed 1 month ago

Qwinci commented 1 month ago

Right now if you press some keys before the irq handler is running you don't get any key presses after that as the output buffer is full. Moving the interrupt and port enabling logic to be done after the io apic irq setup makes it more unlikely to happen (not sure if its completely impossible to trigger still though).

mintsuki commented 1 month ago

LGTM, thank you so much!