diff --git a/src/scsi/scsi_aha154x.c b/src/scsi/scsi_aha154x.c index 4cc7f5ca7..b51fd98ac 100644 --- a/src/scsi/scsi_aha154x.c +++ b/src/scsi/scsi_aha154x.c @@ -396,10 +396,12 @@ typedef struct { int ResetCB; + volatile uint8_t /* for multi-threading, keep */ + Status, /* these volatile */ + Interrupt; + int ExtendedLUNCCBFormat; Req_t Req; - uint8_t Status; - uint8_t Interrupt; uint8_t Geometry; uint8_t Control; uint8_t Command; diff --git a/src/scsi/scsi_buslogic.c b/src/scsi/scsi_buslogic.c index e8a637427..6f15815cc 100644 --- a/src/scsi/scsi_buslogic.c +++ b/src/scsi/scsi_buslogic.c @@ -10,7 +10,7 @@ * 0 - BT-545C ISA; * 1 - BT-958D PCI (but BT-545C ISA on non-PCI machines) * - * Version: @(#)scsi_buslogic.c 1.0.11 2017/09/01 + * Version: @(#)scsi_buslogic.c 1.0.12 2017/09/05 * * Authors: TheCollector1995, * Miran Grca, @@ -470,8 +470,9 @@ typedef struct { int ExtendedLUNCCBFormat; HALocalRAM LocalRAM; Req_t Req; - uint8_t Status; - uint8_t Interrupt; + volatile uint8_t /* for multi-threading, keep */ + Status, /* these volatile */ + Interrupt; uint8_t Geometry; uint8_t Control; uint8_t Command;