RTEMS | RISC-V: Add support for ESP32-C3 (!1160)
Kinsey Moore (@opticron)
gitlab at rtems.org
Wed Apr 1 00:55:31 UTC 2026
Kinsey Moore commented on a discussion on bsps/riscv/esp32/irq/irq_c3.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147708
> + __asm__ volatile ("fence o, i" : : : "memory");
> + riscv_interrupt_enable(cookie);
> +
> + /* clear all mappings */
> + for ( uint8_t vec = 1; vec < RISCV_MAXIMUM_EXTERNAL_INTERRUPTS; vec++ ) {
> + bsp_interrupt_vector_disable( vec );
> + }
> +}
> +
> +bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
> +{
> + if ( vector == 0 ) {
> + return false;
> + }
> +
> + return vector < (rtems_vector_number) BSP_INTERRUPT_VECTOR_COUNT;
Done.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147708
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260401/85d04835/attachment.htm>
More information about the bugs
mailing list