Skip to content

Commit 0518f2a

Browse files
atahd: fix DIAGNOSTICS command.
1 parent 3bf088f commit 0518f2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

devices/common/ata/atahd.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ int AtaHardDisk::perform_command() {
122122
}
123123
break;
124124
case DIAGNOSTICS:
125-
this->r_error = 1;
125+
this->r_error = 1; // device 0 passed, device 1 passed or not present
126126
this->device_set_signature();
127+
this->r_status &= ~BSY;
128+
this->update_intrq(1);
127129
break;
128130
case INIT_DEV_PARAM:
129131
// update fictive disk geometry with parameters from host

0 commit comments

Comments
 (0)