kernel: move volatile from k_thread.prio to k_thread.sched_locked
When prio and sched_locked were moved into a struct together to create a union with the combined preempt field, the volatile qualifier moved from sched_locked to prio by mistake. Change-Id: I5a8e01324f14e77e3d7162c12515471826023633 Signed-off-by: Benjamin Walsh <walsh.benj@gmail.com>
This commit is contained in:
parent
12215b4185
commit
a5d8461d74
|
@ -103,11 +103,11 @@ struct _thread_base {
|
|||
union {
|
||||
struct {
|
||||
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
uint8_t sched_locked;
|
||||
volatile int8_t prio;
|
||||
volatile uint8_t sched_locked;
|
||||
int8_t prio;
|
||||
#else /* LITTLE and PDP */
|
||||
volatile int8_t prio;
|
||||
uint8_t sched_locked;
|
||||
int8_t prio;
|
||||
volatile uint8_t sched_locked;
|
||||
#endif
|
||||
};
|
||||
uint16_t preempt;
|
||||
|
|
Loading…
Reference in New Issue