[riot-notifications] [RIOT-OS/RIOT] cpu/native: fix race in thread_yield_higher() (#10891)

Martine Lenders notifications at github.com
Mon Jan 28 23:06:27 CET 2019


I was also wondering why not all platforms need to set it in `thread_yield_higher()` and only `native`. Except `native` only `atmega_common` seems to do that and also only in the else branch of an `irq_is_in() == 0` check:

https://github.com/RIOT-OS/RIOT/blob/782b181b63ce16684279ccac2f84d890727360c4/cpu/atmega_common/thread_arch.c#L219-L230

All others just seem to be content to trigger a software interrupt except for `msp430_common` which seems to implement its own version of context switching:

https://github.com/RIOT-OS/RIOT/blob/782b181b63ce16684279ccac2f84d890727360c4/cpu/msp430_common/cpu.c#L21-L34

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10891#issuecomment-458320705
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190128/7377f19d/attachment-0001.html>


More information about the notifications mailing list