Move to RTOS to Coretex-R4

I want to move the RTOS to cortex-R4, which demo can I referance?

Thanks!

Here are a couple of Cortex-R examples:
https://freertos.org/RTOS-ARM-Cortex-R5-Xilinx-UltraScale_MPSoC.html
https://freertos.org/Free_RTOS_for_TI_RM48_and_TMS570.html