mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #12819 from maribu/atmega_fix
cpu/atmega_common: Fixed atmega_exit_isr
This commit is contained in:
commit
4e07a26375
@ -248,11 +248,12 @@ void thread_yield_higher(void)
|
|||||||
void atmega_exit_isr(void)
|
void atmega_exit_isr(void)
|
||||||
{
|
{
|
||||||
atmega_in_isr = 0;
|
atmega_in_isr = 0;
|
||||||
atmega_context_save();
|
if (sched_context_switch_request) {
|
||||||
sched_run();
|
atmega_context_save();
|
||||||
atmega_context_restore();
|
sched_run();
|
||||||
|
atmega_context_restore();
|
||||||
__asm__ volatile ("reti");
|
__asm__ volatile ("reti");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((always_inline)) static inline void atmega_context_save(void)
|
__attribute__((always_inline)) static inline void atmega_context_save(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user