From f6d84391dcb1cfcca1c279c3fccc48552052d6a4 Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Mon, 10 Apr 2023 12:57:57 +0300 Subject: [PATCH] zephyr: include: rtos: interrupt.h: Make interrupt_get_irq work for ARM64 platforms ARM64's GIC doesn't utilize cascaded interrupts so interrupt_get_irq will have to return the given INTID. Signed-off-by: Laurentiu Mihalcea --- zephyr/include/rtos/interrupt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zephyr/include/rtos/interrupt.h b/zephyr/include/rtos/interrupt.h index 6a8c9890e..788abfcf3 100644 --- a/zephyr/include/rtos/interrupt.h +++ b/zephyr/include/rtos/interrupt.h @@ -52,7 +52,8 @@ static inline void interrupt_unregister(uint32_t irq, const void *arg) */ static inline int interrupt_get_irq(unsigned int irq, const char *cascade) { -#if defined(CONFIG_LIBRARY) || defined(CONFIG_ACE) || defined(CONFIG_ZEPHYR_POSIX) +#if defined(CONFIG_LIBRARY) || defined(CONFIG_ACE) || \ + defined(CONFIG_ZEPHYR_POSIX) || defined(CONFIG_ARM64) return irq; #else if (cascade == irq_name_level2)