mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
As discovered by dcabecinhas. This fix assume the 8 byte alignment options for size stack size or this will overwrite the first word after TOS
See https://github.com/PX4/Firmware/issues/6613#issuecomment-285869778
This commit is contained in:
@@ -106,7 +106,7 @@ static inline void up_color_intstack(void)
|
||||
uint32_t *ptr = (uint32_t *)&g_intstackalloc;
|
||||
ssize_t size;
|
||||
|
||||
for (size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
|
||||
for (size = (CONFIG_ARCH_INTERRUPTSTACK & ~7);
|
||||
size > 0;
|
||||
size -= sizeof(uint32_t))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user