Skip to content

Commit

Permalink
disk io should enable interrupts too
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Feb 13, 2018
1 parent 56b08ff commit 267bd17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dos/dos.cpp
Expand Up @@ -255,6 +255,10 @@ void diskio_delay(Bits value/*bytes*/) {
double scalar = (double)value / disk_data_rate;
double endtime = PIC_FullIndex() + (scalar * 1000);

/* MS-DOS will most likely enable interrupts in the course of
* performing disk I/O */
CPU_STI();

do {
CALLBACK_Idle();
} while (PIC_FullIndex() < endtime);
Expand Down

0 comments on commit 267bd17

Please sign in to comment.