Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intc: Shared allocator for Xtensa and RISCV #421

Merged

Conversation

raffarost
Copy link
Collaborator

Shared allocator for Xtensa and RISCV

@raffarost raffarost force-pushed the improve/intc_esp32_common_irq branch 2 times, most recently from 3764447 to 8e4eb42 Compare February 27, 2025 14:33
@raffarost raffarost force-pushed the improve/intc_esp32_common_irq branch 5 times, most recently from b1ac902 to 018990d Compare March 14, 2025 18:39
ARG_UNUSED(n);

esp_intr_alloc(0, 0, f, arg, NULL);
esp_intr_alloc(2, 0, f, arg, NULL);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since set_intr_wrapper() already routes sources 0 and 2 to IRQ 0, by removing esp_intr_alloc() we avoid allocating two new IRQs, which is unnecessary (see log below set_intr_wrapper() calls):

-------> source 2 routed to IRQ 0
-------> source 0 routed to IRQ 0

@raffarost raffarost marked this pull request as ready for review March 19, 2025 12:11
Shared allocator for Xtensa and RISCV

Signed-off-by: Raffael Rostagno <[email protected]>
@raffarost raffarost merged commit a2572b2 into zephyrproject-rtos:zephyr Mar 26, 2025
@raffarost raffarost deleted the improve/intc_esp32_common_irq branch March 26, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants