You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/06/13 01:42:34 UTC

[nuttx] 01/03: sched/assert: Ensure that g_last_regs is aligned to 16 bytes.

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit ba8854184d7c4ca64141dc42433ebdcd4ed9ddb7
Author: zhangyuan21 <zh...@xiaomi.com>
AuthorDate: Tue May 23 11:14:24 2023 +0800

    sched/assert: Ensure that g_last_regs is aligned to 16 bytes.
    
    Signed-off-by: zhangyuan21 <zh...@xiaomi.com>
---
 sched/misc/assert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sched/misc/assert.c b/sched/misc/assert.c
index 6cfe493890..b4f4616e85 100644
--- a/sched/misc/assert.c
+++ b/sched/misc/assert.c
@@ -70,7 +70,7 @@
  * Private Data
  ****************************************************************************/
 
-static uint8_t g_last_regs[XCPTCONTEXT_SIZE];
+static uint8_t g_last_regs[XCPTCONTEXT_SIZE] aligned_data(16);
 
 #ifdef CONFIG_BOARD_COREDUMP
 static struct lib_syslogstream_s  g_syslogstream;