diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-03-13 19:00:02 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-03-13 19:00:02 -0500 |
commit | 67a9eeccea205a163cb5633bdbb218461f189004 (patch) | |
tree | bd71e47889e1e5288d7de5fd06deb646b46f1a92 | |
parent | 6704cf9aa1f7e6bd7405044f222c23459d4b4d93 (diff) | |
download | seabios-67a9eeccea205a163cb5633bdbb218461f189004.tar.gz |
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.
-rw-r--r-- | src/ps2port.c | 3 |
1 files changed, 3 insertions, 0 deletions
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. |