atabasedevice: disable device interrupts on reset.

This commit is contained in:
Maxim Poliakovski 2024-08-20 15:22:50 +02:00
parent e1acf5d160
commit 4e78ac33c5
2 changed files with 4 additions and 1 deletions

View File

@ -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() {

View File

@ -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;