Commit 7164e8b
committed
Test: Try cooperative scheduling for mutex test
Diagnostic output revealed printf hangs after printing only '[' character
before enabling preemptive scheduling. This suggests either:
1. Printf buffer/UART issue when transitioning to preemptive mode
2. Preemptive scheduler itself has initialization issues
Changes:
- Removed diagnostic printfs that cause hangs
- Changed return true → false to test with cooperative scheduling
- Added '(cooperative mode)' to output for visibility
If cooperative mode works, the issue is in preemptive scheduler initialization.
If it still hangs, the problem is elsewhere (semaphore/task logic).1 parent 9f29e05 commit 7164e8b
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
| 225 | + | |
| 226 | + | |
228 | 227 | | |
0 commit comments