mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 20:01:19 +08:00
disk io should enable interrupts too
This commit is contained in:
parent
56b08ff9f1
commit
267bd17b56
@ -255,6 +255,10 @@ void diskio_delay(Bits value/*bytes*/) {
|
|||||||
double scalar = (double)value / disk_data_rate;
|
double scalar = (double)value / disk_data_rate;
|
||||||
double endtime = PIC_FullIndex() + (scalar * 1000);
|
double endtime = PIC_FullIndex() + (scalar * 1000);
|
||||||
|
|
||||||
|
/* MS-DOS will most likely enable interrupts in the course of
|
||||||
|
* performing disk I/O */
|
||||||
|
CPU_STI();
|
||||||
|
|
||||||
do {
|
do {
|
||||||
CALLBACK_Idle();
|
CALLBACK_Idle();
|
||||||
} while (PIC_FullIndex() < endtime);
|
} while (PIC_FullIndex() < endtime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user