Close all IDE drives on IDE device destruction.
This commit is contained in:
parent
d5dbe302b5
commit
4459c7175d
1 changed files with 7 additions and 0 deletions
|
|
@ -1273,6 +1273,13 @@ static void *ide_init()
|
|||
|
||||
static void ide_close(void *p)
|
||||
{
|
||||
int c;
|
||||
|
||||
for (c = 0; c < 4; c++)
|
||||
{
|
||||
ide_drives[c].type = IDE_NONE;
|
||||
hdd_close(&ide_drives[c].hdd_file);
|
||||
}
|
||||
}
|
||||
|
||||
void ide_set_bus_master(int (*read_data)(int channel, uint8_t *data, int size, void *p), int (*write_data)(int channel, uint8_t *data, int size, void *p), void (*set_irq)(int channel, void *p), void *p)
|
||||
|
|
|
|||
Loading…
Reference in a new issue