diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-11-12 12:15:34 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-07-14 14:49:34 -0400 |
commit | f318c0797bcea7f5b91853365a0bc65529570963 (patch) | |
tree | 4fb5011988136036ccf26dbd647d4f254ee5c71d /src/clock.c | |
parent | 4d204362b6e2d87ad82f71c076db7cba4d82d301 (diff) | |
download | seabios-f318c0797bcea7f5b91853365a0bc65529570963.tar.gz |
ps2: Support mode for polling the PS2 port instead of using irqs
Some recent hardware has trouble with routing PS2 port interrupts
while the interrupt controller is in legacy routing mode. This patch
adds a config mechanism (via "etc/ps2-poll-only") to force the PS2
code into a polling only mode so that interrupts are not required.
It is not recommended to use this polling mode on hardware that does
properly support PS2 irqs, because some very old (DOS-era) programs
depend on the BIOS PS2 irq behavior.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/clock.c')
-rw-r--r-- | src/clock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clock.c b/src/clock.c index 28c168cf..ee2b53ff 100644 --- a/src/clock.c +++ b/src/clock.c @@ -8,6 +8,7 @@ #include "biosvar.h" // SET_BDA #include "bregs.h" // struct bregs #include "hw/pic.h" // pic_eoi1 +#include "hw/ps2port.h" // ps2_check_event #include "hw/rtc.h" // rtc_read #include "hw/usb-hid.h" // usb_check_event #include "output.h" // debug_enter @@ -297,6 +298,7 @@ handle_08(void) // Check for internal events. floppy_tick(); usb_check_event(); + ps2_check_event(); // chain to user timer tick INT #0x1c struct bregs br; |