This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 607c9486ed2d449a8bc2b99705e2ccac66370d57 Author: yukangzhi <[email protected]> AuthorDate: Mon Nov 30 11:48:28 2026 +0800 Documentation/os/interrupts: document CONFIG_IRQ_UNEXPECTED_PANIC. Describe the new CONFIG_IRQ_UNEXPECTED_PANIC option in the interrupt handling overview: it defaults to y and keeps the panic on an unexpected IRQ; when disabled, irq_unexpected_isr() logs the IRQ number and disables the line with up_disable_irq() instead. Architectures with CONFIG_ARCH_NOINTC always panic. Signed-off-by: yukangzhi <[email protected]> --- Documentation/os/interrupts/index.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/os/interrupts/index.rst b/Documentation/os/interrupts/index.rst index 7a76dd3dc18..4c394638ed1 100644 --- a/Documentation/os/interrupts/index.rst +++ b/Documentation/os/interrupts/index.rst @@ -103,6 +103,12 @@ function, which puts the system in panic (``PANIC()``) and, if the rule is: the driver registers its handler before enabling the interrupt (usually during the bring-up phase). +The panic is controlled by ``CONFIG_IRQ_UNEXPECTED_PANIC``, which defaults to +``y``. If it is disabled, ``irq_unexpected_isr()`` logs the IRQ number, disables +the line with ``up_disable_irq()`` and returns, so the system keeps running +without that interrupt. Architectures that select ``CONFIG_ARCH_NOINTC`` have +no ``up_disable_irq()`` and always panic. + The arch-specific Logic -----------------------
