From 19b58a78da18454a7ae506d83e91d8f676d5f2ed Mon Sep 17 00:00:00 2001 From: Eren Terzioglu Date: Fri, 29 Mar 2024 17:03:39 +0300 Subject: [PATCH] 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.