Skip to content

Commit

Permalink
note: fix note_common unaligned access
Browse files Browse the repository at this point in the history
Data in ARMV8-M may be aligned with less than 4 bytes, resulting in USAGE FAULT

Signed-off-by: yinshengkai <[email protected]>
  • Loading branch information
Gary-Hobson authored and xiaoxiang781216 committed Oct 11, 2024
1 parent 464d284 commit c83858b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/note/note_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ void sched_note_event_ip(uint32_t tag, uintptr_t ip, uint8_t event,
FAR struct note_event_s *note;
FAR struct note_driver_s **driver;
bool formatted = false;
char data[255];
char data[256];
unsigned int length;
FAR struct tcb_s *tcb = this_task();

Expand Down Expand Up @@ -1491,7 +1491,7 @@ void sched_note_vprintf_ip(uint32_t tag, uintptr_t ip, FAR const char *fmt,
FAR struct note_printf_s *note;
FAR struct note_driver_s **driver;
bool formatted = false;
uint8_t data[255];
uint8_t data[256];
size_t length = 0;
FAR struct tcb_s *tcb = this_task();

Expand Down

0 comments on commit c83858b

Please sign in to comment.