anchao commented on a change in pull request #5915: URL: https://github.com/apache/incubator-nuttx/pull/5915#discussion_r839709765
########## File path: sched/sched/sched_note.c ########## @@ -107,6 +107,67 @@ static unsigned int g_note_disabled_irq_nest[CONFIG_SMP_NCPUS]; * Private Functions ****************************************************************************/ +/**************************************************************************** + * Name: sched_note_format + * + * Description: + * swap the data to unified format + * + ****************************************************************************/ + +static inline void sched_note_format(FAR uint8_t *dst, Review comment: Done ########## File path: sched/sched/sched_note.c ########## @@ -107,6 +107,67 @@ static unsigned int g_note_disabled_irq_nest[CONFIG_SMP_NCPUS]; * Private Functions ****************************************************************************/ +/**************************************************************************** + * Name: sched_note_format Review comment: Done ########## File path: sched/sched/sched_note.c ########## @@ -144,25 +205,15 @@ static void note_common(FAR struct tcb_s *tcb, #ifdef CONFIG_SMP Review comment: Done ########## File path: sched/sched/sched_note.c ########## @@ -107,6 +107,67 @@ static unsigned int g_note_disabled_irq_nest[CONFIG_SMP_NCPUS]; * Private Functions ****************************************************************************/ +/**************************************************************************** + * Name: sched_note_format + * + * Description: + * swap the data to unified format + * + ****************************************************************************/ + +static inline void sched_note_format(FAR uint8_t *dst, + FAR void *src, size_t len) +{ + uint64_t u64; + uint32_t u32; + uint16_t u16; + uint8_t u8; + + switch (len) + { + case 8: Review comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org