tcbinfo: add packet align to struct tcbinfo
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
parent
8f1c6ee7bc
commit
6578461cc8
@ -766,7 +766,7 @@ struct pthread_tcb_s
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_TCBINFO
|
#ifdef CONFIG_DEBUG_TCBINFO
|
||||||
struct tcbinfo_s
|
begin_packed_struct struct tcbinfo_s
|
||||||
{
|
{
|
||||||
uint16_t pid_off; /* Offset of tcb.pid */
|
uint16_t pid_off; /* Offset of tcb.pid */
|
||||||
uint16_t state_off; /* Offset of tcb.task_state */
|
uint16_t state_off; /* Offset of tcb.task_state */
|
||||||
@ -787,7 +787,7 @@ struct tcbinfo_s
|
|||||||
uint8_t u[8];
|
uint8_t u[8];
|
||||||
FAR uint16_t *p;
|
FAR uint16_t *p;
|
||||||
} reg_off;
|
} reg_off;
|
||||||
};
|
} end_packed_struct;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This is the callback type used by nxsched_foreach() */
|
/* This is the callback type used by nxsched_foreach() */
|
||||||
|
@ -72,7 +72,7 @@ enum symbol_e
|
|||||||
NSYMBOLS
|
NSYMBOLS
|
||||||
};
|
};
|
||||||
|
|
||||||
struct tcbinfo_s
|
__attribute__ ((packed)) struct tcbinfo_s
|
||||||
{
|
{
|
||||||
uint16_t pid_off;
|
uint16_t pid_off;
|
||||||
uint16_t state_off;
|
uint16_t state_off;
|
||||||
|
Loading…
Reference in New Issue
Block a user