Skip to content
Snippets Groups Projects
Commit 36e6b6e3 authored by sasan_golchin's avatar sasan_golchin Committed by Federico
Browse files

IRQportableStartKernel splitted


It is ensured that the miosix::kernel_started flag is false during the
execution of IRQportableStartKernel.
Upon return, miosix::kernel_started is set to be true and
IRQportableFinishKernelStartup is called immediately.

A motivation for this kind of flow could be that it allows running of
general purpose driver classes that would be ran either before or after
start of the kernel.
Probably these drivers may need to disable interrupts using
InterruptDisableLock in the case that they are initialized after
kernel's startup, while using InterruptDisableLock is error-prone when
the kernel_started flag is true and the kernel is not fully started yet
and the driver is started within IRQportableStartKernel.

Signed-off-by: default avatarSasan Golchin <ahmad.golchin@mail.polimi.it>
Signed-off-by: default avatarTerraneo Federico <fede.tft@miosix.org>
parent d567da4c
No related branches found
No related tags found
2 merge requests!40Update to Miosix 2.7,!17Draft: Improved miosix build system and fixed cmake scripts
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment