Fix access to REG_R0 at chx_wakeup.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2017-05-18 NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
* chopstx.c (chx_wakeup): Fix access to REG_R0.
|
||||
|
||||
2017-02-02 NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
* VERSION: 1.3.
|
||||
|
||||
@@ -918,8 +918,8 @@ chx_wakeup (struct chx_pq *pq)
|
||||
}
|
||||
else
|
||||
{
|
||||
((struct chx_stack_regs *)tp->tc.reg[REG_SP])->reg[REG_R0] = 1;
|
||||
tp = (struct chx_thread *)pq;
|
||||
((struct chx_stack_regs *)tp->tc.reg[REG_SP])->reg[REG_R0] = 1;
|
||||
chx_ready_enqueue (tp);
|
||||
if (tp->prio > running->prio)
|
||||
yield = 1;
|
||||
|
||||
Reference in New Issue
Block a user