Commit ec2f42c
committed
OS/ThreadX: fix
Add volatile keyword and memory clobber to inline assembly in `TX_DISABLE`
and `TX_RESTORE` macros to prevent compiler reordering and ensure proper
memory barrier semantics for interrupt disable/restore operations.
Signed-off-by: Huaqi Fang <578567190@qq.com>TX_DISABLE/TX_RESTORE macros with volatile and memory clobber1 parent 1ca83c1 commit ec2f42c
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
0 commit comments