pr: Removed Unnessisary Flipping on kconsole leading to Vastly Faster Boot Times & PS/2 Hardware Correctness (#12)

* Flush PS/2 Devices on boot to avoid Locking dependent on the out buffer on real hardware / emulated PS2 over USB

Removed Slow and Unnessisarty flipping causing kconsole write slowdowns consequently speeding up the boot process

* sod wc
This commit is contained in:
Myles "Mellurboo" Wilson
2026-05-10 10:22:18 +01:00
committed by GitHub
parent e9888f26b1
commit fdcfd48a24
6 changed files with 30 additions and 6 deletions

View File

@@ -109,6 +109,9 @@ uint8_t mouse_read(void) {
void mouse_init(void) {
uint8_t status;
int limit = 128;
while (limit-- > 0 && (inb(PS2_STATUS_PORT) & PS2_STATUS_OUT_FULL))
(void)inb(PS2_DATA_PORT);
// Enable Aux Device
mouse_wait(0);