Mercurial > hg > Members > innparusu > xv6-rpi
comparison src/proc.c @ 37:fb3e5a2f76c1
fix
author | mir3636 |
---|---|
date | Fri, 22 Feb 2019 22:36:17 +0900 |
parents | d4e5846ddb48 |
children |
comparison
equal
deleted
inserted
replaced
36:d4e5846ddb48 | 37:fb3e5a2f76c1 |
---|---|
537 p->state = RUNNABLE; | 537 p->state = RUNNABLE; |
538 } | 538 } |
539 } | 539 } |
540 | 540 |
541 release(&ptable.lock); | 541 release(&ptable.lock); |
542 goto next(); | 542 goto proc->cbc_next(); |
543 } | 543 } |
544 | 544 |
545 __code cbc_wakeup(void *chan) | 545 __code cbc_wakeup(void *chan, __code(*next1)()) |
546 { | 546 { |
547 acquire(&ptable.lock); | 547 acquire(&ptable.lock); |
548 proc->cbc_next = next1; | |
548 cbc_wakeup1(chan); | 549 cbc_wakeup1(chan); |
549 } | 550 } |
550 | 551 |
551 // Wake up all processes sleeping on chan. | 552 // Wake up all processes sleeping on chan. |
552 void wakeup(void *chan) | 553 void wakeup(void *chan) |