- Timestamp:
- Feb 18, 2019 3:47:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r77023 r77349 3920 3920 3921 3921 3922 static bool ataR3ExecuteDeviceDiagnosticSS(ATADevState *s)3922 static void ataR3DeviceDiag(ATADevState *s) 3923 3923 { 3924 3924 ataR3SetSignature(s); … … 3928 3928 ataSetStatusValue(s, ATA_STAT_READY | ATA_STAT_SEEK); 3929 3929 s->uATARegError = 0x01; 3930 } 3931 3932 3933 static bool ataR3ExecuteDeviceDiagnosticSS(ATADevState *s) 3934 { 3935 PATACONTROLLER pCtl = ATADEVSTATE_2_CONTROLLER(s); 3936 3937 /* EXECUTE DEVICE DIAGNOSTIC is a very special command which always 3938 * gets executed, regardless of which device is selected. As a side 3939 * effect, it always completes with device 0 selected. 3940 */ 3941 for (uint32_t i = 0; i < RT_ELEMENTS(pCtl->aIfs); i++) 3942 ataR3DeviceDiag(&pCtl->aIfs[i]); 3943 3944 LogRel(("ATA: LUN#%d: EXECUTE DEVICE DIAGNOSTIC, status %02X\n", 3945 s->iLUN, s->uATARegStatus)); 3946 pCtl->iSelectedIf = 0; 3947 3930 3948 return false; 3931 3949 } … … 5876 5894 { 5877 5895 ataR3ResetDevice(s); 5878 ataR3 ExecuteDeviceDiagnosticSS(s);5896 ataR3DeviceDiag(s); 5879 5897 } 5880 5898 else
Note:
See TracChangeset
for help on using the changeset viewer.