[PATCH 3/3] Force ISR enable before scheduler start

EYSSARTIER Kevin kevin.eyssartier at thalesgroup.com
Fri Aug 4 10:15:49 UTC 2023


Classified as: {OPEN}

I don't know how to run the tests.
I observe that _Thread_Do_dispatch fails with INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT because RTEMS_SCORE_ROBUST_THREAD_DISPATCH is activated and the _ISR_Is_enabled returns false.

Indeed, the _CPU_Start_multitasking should be called properly, but the _RISCV_Start_multitasking function is only present when the RTEMS_SMP flag is activated. There is something that seems strange between the multitask and SMP functionalities in the riscv-context-switch.S file. A single core system should be capable of running a multitask system.

I agree that my solution is not good but moving _RISCV_Start_multitasking out of the '#ifdef RTEMS_SMP' barrier seems to bring many side effects.

Best regards,
-------
Kevin EYSSARTIER, Research Engineer
Thales Research & Technology France - High Performance Computing Lab
Campus Polytechnique - 1, avenue Augustin Fresnel  - 91767 Palaiseau cedex
Phone : +33 (0)1 69 41 55 14  Internal : 341 55 14



{OPEN}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20230804/9fe724ad/attachment.htm>


More information about the devel mailing list