Repository navigation
Commit 80ffe69
sched/tcb: change the type of tcb->flags to atomic_t
The previous commits access tcb->flags only through atomic_read(),
atomic_or() and atomic_and(). Give the field the atomic_t type those
operations are declared for.
With the field atomic, a plain |= or &= added later is compiled into a
__atomic_fetch_* library call. NuttX does not provide those on chips
without atomic instructions (Cortex-M0), so such an access fails to
link there instead of silently racing.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>1 parent 7d93b94 commit 80ffe69
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
| |||
0 commit comments