From 67a9eeccea205a163cb5633bdbb218461f189004 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 13 Mar 2010 19:00:02 -0500 Subject: Prevent ps2 irqs from messing up ps2 init. This is an alternate to 6f702dd6987b22e9bce472fe61910392af17416a. After disabling ps2 irqs, enable irqs to flush any queued irqs. This should prevent irqs from triggering in the middle of the init process. --- src/ps2port.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ps2port.c b/src/ps2port.c index 54227457..71a1ba24 100644 --- a/src/ps2port.c +++ b/src/ps2port.c @@ -228,6 +228,9 @@ ps2_command(int aux, int command, u8 *param) if (ret) return ret; + // Flush any interrupts already pending. + yield(); + if (command == ATKBD_CMD_RESET_BAT) { // Reset is special wrt timeouts. -- cgit