From 47c1fe81606421883387ffd81ae184dd3c37f84f Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 12 Aug 2020 21:55:25 -0300 Subject: [PATCH] Fix POST card I/O ports --- src/device/postcard.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/device/postcard.c b/src/device/postcard.c index df2c1f96d..3eb732bd9 100644 --- a/src/device/postcard.c +++ b/src/device/postcard.c @@ -113,8 +113,10 @@ postcard_init(const device_t *info) if (machines[machine].flags & MACHINE_MCA) postcard_port = 0x680; /* MCA machines */ - else if (strstr(machines[machine].name, " PS/2 ")) - postcard_port = 0x90; /* ISA PS/2 machines */ + else if (strstr(machines[machine].name, " PS/2 ") || strstr(machines[machine].name, " PS/1 ")) + postcard_port = 0x190; /* ISA PS/2 machines */ + else if (strstr(machines[machine].name, " Compaq ") && !(machines[machine].flags & MACHINE_PCI)) + postcard_port = 0x84; /* ISA Compaq machines */ else postcard_port = 0x80; /* AT and clone machines */ postcard_log("POST card initializing on port %04Xh\n", postcard_port);