You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "raiden00pl (via GitHub)" <gi...@apache.org> on 2026/10/21 12:38:50 UTC
[PR] arch/arm: keep g_running_tasks valid on ARMv6-M [nuttx]
raiden00pl opened a new pull request, #20871:
URL: https://github.com/apache/nuttx/pull/20871
## Summary
d20189bdfa2 made up_exit() and the ARMv6-M arm_sigdeliver() set
g_running_tasks to NULL before SYS_restore_context, so that the ARMv6-M
arm_doirq() skips saving the registers into it. That NULL is passed to
nxsched_switch_context(), which dereferences it; with tickless
round-robin this locked up the STM32F0.
d20189bdfa2 replaced the check of the SVCall number and R0, because on
ARMv6-M the SVC arrives as HardFault when issued with PRIMASK set
(ARMv6-M ARM, DDI 0419E, B1.5.4). Restore that check, accepting SVCall
and HardFault, and remove the NULL from up_exit() and arm_sigdeliver().
## Impact
bug fix
## Testing
NUCLEO-F091RC (Cortex-M0) and NUCLEO-U083RC (Cortex-M0+) with systick and tickless
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/arm: keep g_running_tasks valid on ARMv6-M [nuttx]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20871:
URL: https://github.com/apache/nuttx/pull/20871#issuecomment-6328211312
<!-- membrowse-pr-comment -->
## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report · [Explore what changed →](https://membrowse.com/public/apache/nuttx?commit_sha=6d64c8a2ce061707089881894ec0a1aa4262657f)
*No memory changes detected for:*
- [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
- [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
- [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
- [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
- [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
- [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
- [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
- [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
- [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=6d64c8a2ce061707089881894ec0a1aa4262657f&base=0dcbf44487dc1327e4932521e18a0e797dbfaf00)
---
<sub>Catch memory regressions in CI with [MemBrowse](https://membrowse.com). Free for open source.</sub>
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/arm: keep g_running_tasks valid on ARMv6-M [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis merged PR #20871:
URL: https://github.com/apache/nuttx/pull/20871
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org