mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-05 10:30:28 +00:00
atabasedevice: disable device interrupts on reset.
This commit is contained in:
parent
e1acf5d160
commit
4e78ac33c5
@ -46,6 +46,9 @@ void AtaBaseDevice::device_reset(bool is_soft_reset) {
|
||||
|
||||
// Diagnostic code
|
||||
this->r_error = 1; // device 0 passed, device 1 passed or not present
|
||||
|
||||
// disable interrupts
|
||||
this->r_dev_ctrl |= ATA_CTRL::IEN;
|
||||
}
|
||||
|
||||
void AtaBaseDevice::device_set_signature() {
|
||||
|
@ -92,7 +92,7 @@ protected:
|
||||
uint8_t r_command;
|
||||
uint8_t r_status;
|
||||
uint8_t r_status_save;
|
||||
uint8_t r_dev_ctrl = 0x08;
|
||||
uint8_t r_dev_ctrl = 0x08 | ata_interface::ATA_CTRL::IEN; // disable interrupts
|
||||
|
||||
uint16_t *data_ptr = nullptr;
|
||||
uint16_t *cur_data_ptr = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user