Skip to content

Commit

Permalink
IO callout: Motherboard I/O always take priority
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Mar 20, 2024
1 parent 10ff572 commit 63b3ba3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hardware/iohandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ static Bitu IO_ReadSlowPath(Bitu port,Bitu iolen) {
Bitu ret = ~0ul;

/* check motherboard devices */
if ((port & 0xFF00) == 0x0000 || IS_PC98_ARCH) /* motherboard-level I/O */
match = IO_Motherboard_Callout_Read(/*&*/ret,/*&*/f,port,iolen);
match = IO_Motherboard_Callout_Read(/*&*/ret,/*&*/f,port,iolen);

if (match == 0) {
/* first PCI bus device, then ISA.
Expand Down Expand Up @@ -249,8 +248,7 @@ void IO_WriteSlowPath(Bitu port,Bitu val,Bitu iolen) {
unsigned int porti;

/* check motherboard devices */
if ((port & 0xFF00) == 0x0000 || IS_PC98_ARCH) /* motherboard-level I/O */
match = IO_Motherboard_Callout_Write(/*&*/f,port,val,iolen);
match = IO_Motherboard_Callout_Write(/*&*/f,port,val,iolen);

if (match == 0) {
/* first PCI bus device, then ISA.
Expand Down

0 comments on commit 63b3ba3

Please sign in to comment.