From: Kevin O'Connor Date: Sun, 14 Mar 2010 00:00:02 +0000 (-0500) Subject: Prevent ps2 irqs from messing up ps2 init. X-Git-Tag: rel-0.6.0~15 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=67a9eeccea205a163cb5633bdbb218461f189004;p=seabios.git 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. --- diff --git a/src/ps2port.c b/src/ps2port.c index 5422745..71a1ba2 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.