Skip to content
Snippets Groups Projects
Commit af74472c authored by Thierno souleymane Bah's avatar Thierno souleymane Bah
Browse files

fix(irq_enable done in sem_down function before yield done)

parent c8ddcea2
Branches
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ void sem_down(sem_t *sem) ...@@ -38,6 +38,7 @@ void sem_down(sem_t *sem)
current_ctx->status = CTX_WAIT; current_ctx->status = CTX_WAIT;
current_ctx->sem_next_ctx = sem->first_ctx; current_ctx->sem_next_ctx = sem->first_ctx;
sem->first_ctx = current_ctx; sem->first_ctx = current_ctx;
irq_enable();
yield(); yield();
} }
irq_enable(); irq_enable();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment