Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Limit cdrom emulation available functions.
The extended read methods must be disabled.
Resynch with original bochs bios list of available functions.
  • Loading branch information
KevinOConnor committed Mar 23, 2008
1 parent f04d5c7 commit aa7ddd7
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/cdrom.c
Expand Up @@ -229,10 +229,25 @@ cdemu_13(struct bregs *regs)
disk_13(regs, device);
break;

// These functions are the same as standard CDROM.
case 0x00:
case 0x01:
case 0x03:
case 0x05:
case 0x09:
case 0x0c:
case 0x0d:
case 0x10:
case 0x11:
case 0x14:
case 0x15:
case 0x16:
cdrom_13(regs, device);
break;

case 0x08: cdemu_1308(regs, device); break;

// XXX - All other calls get passed to standard CDROM functions.
default: cdrom_13(regs, device); break;
default: disk_13XX(regs, device); break;
}
}

Expand Down

0 comments on commit aa7ddd7

Please sign in to comment.