diff --git a/kernel/include/kernel_structs.h b/kernel/include/kernel_structs.h index 31da33f914b..f0f55cdb7e2 100644 --- a/kernel/include/kernel_structs.h +++ b/kernel/include/kernel_structs.h @@ -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;