aboutsummaryrefslogtreecommitdiff
path: root/chopstx.c
diff options
context:
space:
mode:
Diffstat (limited to 'chopstx.c')
-rw-r--r--chopstx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chopstx.c b/chopstx.c
index 2f7189f..986bb90 100644
--- a/chopstx.c
+++ b/chopstx.c
@@ -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;