This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 19b58a78da risc-v/espressif: Fix empty cpuint number
19b58a78da is described below

commit 19b58a78da18454a7ae506d83e91d8f676d5f2ed
Author: Eren Terzioglu <eren.terzio...@espressif.com>
AuthorDate: Fri Mar 29 17:03:39 2024 +0300

    risc-v/espressif: Fix empty cpuint number
---
 arch/risc-v/src/common/espressif/esp_irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/risc-v/src/common/espressif/esp_irq.c 
b/arch/risc-v/src/common/espressif/esp_irq.c
index a70c1da339..145ce647fa 100644
--- a/arch/risc-v/src/common/espressif/esp_irq.c
+++ b/arch/risc-v/src/common/espressif/esp_irq.c
@@ -153,7 +153,7 @@ static int esp_cpuint_alloc(int irq)
 {
   uint32_t bitmask;
   uint32_t intset;
-  int cpuint;
+  int cpuint = ESP_NCPUINTS;
 
   /* Check if there are CPU interrupts with the requested properties
    * available.

Reply via email to