zyfeier opened a new pull request, #22587:
URL: https://github.com/apache/nuttx/pull/22587

   The protected kernel region of `stm32l476vg-disco:knsh` is limited to 8 KiB 
and has been operating at zero headroom, so any kernel `.bss` growth tips the 
link over the region limit.
   
   Reduce the pre-allocated irq action pool from the default 8 to 5 entries, 
saving 240 bytes of kernel SRAM. sigaction allocation already falls back to the 
kernel heap when the pool is exhausted (`sched/signal/sig_action.c`), so this 
only trades one-time preallocation for heap allocation in the low-frequency irq 
attach path.
   
   ## Verification
   
   - master + this change: `ksram 7952 B / 8192 B (97.07%)`
   - master + this change + the pending per-CPU kernel state series (#22321): 
`ksram 8024 B / 8192 B (97.95%)`, link restored
   
   Same approach as 7c8f97a0d59 ("Reduce knsh timer preallocation"), which 
fixed the previous overflow of this region the same way.


-- 
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]

Reply via email to