summaryrefslogtreecommitdiff
path: root/serial/VirtualSerial2
diff options
context:
space:
mode:
authorv-junyli <[email protected]>2025-04-01 17:01:48 -0700
committerGitHub <[email protected]>2025-04-01 17:01:48 -0700
commit377403a674ece9688631149a35adca7fe07d0115 (patch)
tree09a70b8dae855b5022dcb58d02b5ab0cead09408 /serial/VirtualSerial2
parent5d5cd612d00cc8c17f22a2793a284d1bb5091cdb (diff)
parentee60abcd73e358f0a3f25cb5101f981e04a99168 (diff)
Merge pull request #1282 from microsoft/develop
Develop to main
Diffstat (limited to 'serial/VirtualSerial2')
-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);