Commit 6820e49
committed
OS/ThreadX: Fix ready-thread handling around stack switch idle processing
- Do not use the local `rdy_thread` result while `PortThreadSwitch` is
running on the interrupt stack after stack swap.
- Reload the selected thread only after the task stack has been restored, so
the scheduling flow matches the stack switching order.
Signed-off-by: Huaqi Fang <578567190@qq.com>1 parent d95ab0e commit 6820e49
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
| |||
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
151 | 160 | | |
152 | 161 | | |
153 | 162 | | |
| |||
0 commit comments