summaryrefslogtreecommitdiff
path: root/serial/VirtualSerial2/queue.c
diff options
context:
space:
mode:
authorya-solnyshko <[email protected]>2025-04-06 13:41:57 +0200
committerGitHub <[email protected]>2025-04-06 13:41:57 +0200
commit44844a5888b8a12652ee4e4d87dd53c08afa146d (patch)
treefa9246114c21fc120eeebb8c3b913196c57bbfe9 /serial/VirtualSerial2/queue.c
parent3dbe73da0848fce170ff4f59459bc597f0d0cd34 (diff)
parent89cb2a985612eb83e20b15f6445228ee7f681fba (diff)
Merge branch 'main' into fix-transaction-processing
Diffstat (limited to 'serial/VirtualSerial2/queue.c')
-rw-r--r--serial/VirtualSerial2/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/VirtualSerial2/queue.c b/serial/VirtualSerial2/queue.c
index 83b022de..371ef693 100644
--- a/serial/VirtualSerial2/queue.c
+++ b/serial/VirtualSerial2/queue.c
@@ -717,7 +717,7 @@ QueueProcessGetLineControl(
//
// Take a snapshot of the line control register variable
//
- lineControlSnapshot = *lineControlRegister;
+ lineControlSnapshot = ReadNoFence((LONG *)lineControlRegister);
//
// Decode the word length
@@ -946,7 +946,7 @@ QueueProcessSetLineControl(
#endif
}
- lineControlSnapshot = *lineControlRegister;
+ lineControlSnapshot = ReadNoFence((LONG *)lineControlRegister);
lineControlNew = (lineControlSnapshot & SERIAL_LCR_BREAK) |
(lineControlData | lineControlParity | lineControlStop);