Skip to content
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

Indicating that context switch is required from ISR #32

Open
simonjwright opened this issue Oct 30, 2020 · 1 comment
Open

Indicating that context switch is required from ISR #32

simonjwright opened this issue Oct 30, 2020 · 1 comment
Assignees

Comments

@simonjwright
Copy link
Owner

simonjwright commented Oct 30, 2020

In freertos_bindings.c, _gnat_yield_from_isr() calls portEND_SWITCHING_ISR(), but there’s a suggestion on the FreeRTOS forums that portYIELD_FROM_ISR() would be appropriate.

@simonjwright simonjwright self-assigned this Oct 30, 2020
@simonjwright
Copy link
Owner Author

The FAQ on ISRs says

Each RTOS port provides a macro to request a context switch from within an ISR. The name of the macro is dependent on the port (for historic reasons). It will be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR.

The ARM CM ports I’ve looked at define

#define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x )

so no worries; but the hint above indicates that maybe portYIELD_FROM_ISR() would be better. At least the name matches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant