Hi, Am working in an application like 2 RTOS has to run in the same MCU,I can switch from one is to another os by restarting ....Is there anyway that I can do without restarting...I I tried with address jumping by using function pointer... That time code is stucking ....I suspend the Os and tried then also same... Why code is not jumping from one location to another in operating system.... How can I disable operating system completely??? Please help me
The answer is almost certainly yes, but whether there is any value in doing it or whether you have sufficient understanding to carry out the task are important.
The fact that you are asking the question suggests that the answer to the latter point I just gave above is likely a no.
But, just in case, you MUST realise that the switch from one to another must include code that fully disables all appropriate resources used by one OS before attempting to switch to the other.
But why would you "need" (sic) to do that?!
It is a very strange request!
Wouldn't it make more sense to take all the tasks of the two OS, and just bring them all under a single OS?
If you say what you're actually trying to achieve, people may be able to suggest better ways to achieve the goal - or confirm if this really is a good approach
www.catb.org/.../smart-questions.html
"you MUST realise that the switch from one to another must include code that fully disables all appropriate resources used by one OS before attempting to switch to the other"
Certainly the easiest way to do this is by restarting the system!
And, if you want to switch back & forth between the two OS, you are going to have to think of some way to save & restore the entire system state ... !!