anchao opened a new pull request, #21514:
URL: https://github.com/apache/nuttx/pull/21514
## Summary
This updates `ARCH_INTERRUPTSTACK` so that a configured interrupt stack
is represented as a defined positive size instead of using `0` as the
disabled state.
The Kconfig symbol now has an explicit positive range, with `128` as the
lower bound to preserve existing board configurations. Architecture code
is then updated to check whether `CONFIG_ARCH_INTERRUPTSTACK` is defined
instead of comparing its numeric value against zero or small thresholds.
This also replaces local interrupt-stack alignment masks with
`STACK_ALIGN_DOWN()` so interrupt stack sizing follows the common stack
alignment definition consistently.
## Changes
- Add a positive Kconfig range for `ARCH_INTERRUPTSTACK`
- Use `#ifdef CONFIG_ARCH_INTERRUPTSTACK` / `#ifndef
CONFIG_ARCH_INTERRUPTSTACK`
for interrupt stack availability checks
- Remove numeric checks such as `CONFIG_ARCH_INTERRUPTSTACK > 0`,
`<= 3`, or similar disabled-state tests
- Replace ad-hoc alignment expressions with `STACK_ALIGN_DOWN()`
## Testing
sim/nsh
qemu-armv8a/nsh
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]