FreeRTOS-Kernel icon indicating copy to clipboard operation
FreeRTOS-Kernel copied to clipboard

RISC-V Nested Interrupt Support

Open cmdrf opened this issue 4 years ago • 1 comments

RISC-V Nested Interrupt Support

Description

This adds nested interrupt support to the RISC-V port. As a bonus it adds a xPortIsInsideInterrupt macro. Inspired by Canaan's port.

Test Steps

Tested on a Kendryte K210 64-bit RISC-V MCU with an interrupt-heavy application that would crash reproducibly without this change.

Disclaimer

I'm not a RISC-V or OS programming expert. I only tested this on a single target. I'm not mad if this PR stays open for a long time until someone can confirm its correctness (or not).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

cmdrf avatar Jul 15 '21 18:07 cmdrf

Thanks for your contribution. We currently have three vectored interrupt implementations so I will ask for your patience while we consolidate to a single upstream version.

RichardBarry avatar Jul 20 '21 18:07 RichardBarry