-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Does the context switch routine have consider "Pendsv" handler? #120
Comments
Hello, You mean that the context switching is done by the PendSV handler I guess? Best regards |
Yes, because I saw a lot of sample, the context switch all run on systick or timer. |
I still don't understand what you are saying. If the context switch occurs in the Systick or timer handler then it does not occur in the PendSV handler. If you mean that the context switch occurs in the PendSV handler and the PendSV was triggered by the Systick or Timer handler then I don't see the point of invoking a PendSV rather than doing the context switch directly at the end of the Systick or Timer handler. Also, I doubt that context switching is only done asynchronously in the handler of a hardware IT. When a synchronous system call leads to a context switch, it should be done immediately, not 1ms later (at worst). |
Thanks for your information!!
Or we just need to set ISR1 or ISR2 on trampline, is it correct? |
The text was updated successfully, but these errors were encountered: